raspi_tests

view gpiotest1/Makefile @ 1:7cdaa3a0df97

- non-priviledged GPIO by opening /dev/gpiomem - input pin with internal pullup/pulldown resistor
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 03 Mar 2016 04:28:11 +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)