raspi_tests

diff 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
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gpiotest1/Makefile	Tue Mar 01 07:38:36 2016 +0000
     1.3 @@ -0,0 +1,16 @@
     1.4 +obj = test.o
     1.5 +bin = test
     1.6 +
     1.7 +vidcore_inc = -I/opt/vc/include \
     1.8 +			  -I/opt/vc/include/interface/vcos/pthreads \
     1.9 +			  -I/opt/vc/include/interface/vmcs_host/linux
    1.10 +
    1.11 +CFLAGS = -std=gnu99 -pedantic -Wall -g $(vidcore_inc)
    1.12 +LDFLAGS = -L/opt/vc/lib -lbcm_host
    1.13 +
    1.14 +$(bin): $(obj)
    1.15 +	$(CC) -o $@ $(obj) $(LDFLAGS)
    1.16 +
    1.17 +.PHONY: clean
    1.18 +clean:
    1.19 +	rm -f $(obj) $(bin)