raspi_tests

annotate gpiotest1/Makefile @ 0:fbf9076c1984

first raspberry pi gpio test (led blinker)
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 01 Mar 2016 07:38:36 +0000
parents
children
rev   line source
nuclear@0 1 obj = test.o
nuclear@0 2 bin = test
nuclear@0 3
nuclear@0 4 vidcore_inc = -I/opt/vc/include \
nuclear@0 5 -I/opt/vc/include/interface/vcos/pthreads \
nuclear@0 6 -I/opt/vc/include/interface/vmcs_host/linux
nuclear@0 7
nuclear@0 8 CFLAGS = -std=gnu99 -pedantic -Wall -g $(vidcore_inc)
nuclear@0 9 LDFLAGS = -L/opt/vc/lib -lbcm_host
nuclear@0 10
nuclear@0 11 $(bin): $(obj)
nuclear@0 12 $(CC) -o $@ $(obj) $(LDFLAGS)
nuclear@0 13
nuclear@0 14 .PHONY: clean
nuclear@0 15 clean:
nuclear@0 16 rm -f $(obj) $(bin)