raspi_tests

annotate 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
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)