doorbell

view doorbelld/Makefile @ 6:026156ea8801

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 16 Mar 2016 00:00:06 +0200
parents d3f2a2b19504
children
line source
1 src = $(wildcard src/*.c)
2 obj = $(src:.c=.o)
3 bin = doorbelld
5 CFLAGS = -pedantic -Wall -g
6 LDFLAGS = -lwcam -lpthread
8 .PHONY: all
9 all: .clang_complete $(bin)
11 $(bin): $(obj)
12 $(CC) -o $@ $(obj) $(LDFLAGS)
14 .clang_complete:
15 echo '-x c' >$@
16 for i in $(CFLAGS); do echo $$i >>$@; done
18 .PHONY: clean
19 clean:
20 rm -f $(obj) $(bin)