doorbell
diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/doorbell-client/Makefile Tue Mar 15 08:35:21 2016 +0200 1.3 @@ -0,0 +1,20 @@ 1.4 +src = $(wildcard src/*.c) 1.5 +obj = $(src:.c=.o) 1.6 +bin = doorbell 1.7 + 1.8 +CFLAGS = -pedantic -Wall -g 1.9 +LDFLAGS = -lGL -lGLU -lglut 1.10 + 1.11 +.PHONY: all 1.12 +all: .clang_complete $(bin) 1.13 + 1.14 +$(bin): $(obj) 1.15 + $(CC) -o $@ $(obj) $(LDFLAGS) 1.16 + 1.17 +.clang_complete: 1.18 + echo '-x c' >$@ 1.19 + for i in $(CFLAGS); do echo $$i >>$@; done 1.20 + 1.21 +.PHONY: clean 1.22 +clean: 1.23 + rm -f $(obj) $(bin)