doorbell

view doorbell-client/Makefile @ 5:f21ae31ef0e7

craptacular
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 15 Mar 2016 08:35:21 +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)