doorbell

view doorbell-client/Makefile @ 6:026156ea8801

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 16 Mar 2016 00:00:06 +0200
parents
children
line source
1 src = $(wildcard src/*.c)
2 obj = $(src:.c=.o)
3 bin = doorbell
5 CFLAGS = -pedantic -Wall -g
6 LDFLAGS = -lGL -lGLU -lglut
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)