raspi_tests

view 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 source
1 obj = test.o
2 bin = test
4 vidcore_inc = -I/opt/vc/include \
5 -I/opt/vc/include/interface/vcos/pthreads \
6 -I/opt/vc/include/interface/vmcs_host/linux
8 CFLAGS = -std=gnu99 -pedantic -Wall -g $(vidcore_inc)
9 LDFLAGS = -L/opt/vc/lib -lbcm_host
11 $(bin): $(obj)
12 $(CC) -o $@ $(obj) $(LDFLAGS)
14 .PHONY: clean
15 clean:
16 rm -f $(obj) $(bin)