doorbell
annotate doorbell-client/Makefile @ 6:026156ea8801
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 16 Mar 2016 00:00:06 +0200 |
parents | |
children |
rev | line source |
---|---|
nuclear@5 | 1 src = $(wildcard src/*.c) |
nuclear@5 | 2 obj = $(src:.c=.o) |
nuclear@5 | 3 bin = doorbell |
nuclear@5 | 4 |
nuclear@5 | 5 CFLAGS = -pedantic -Wall -g |
nuclear@5 | 6 LDFLAGS = -lGL -lGLU -lglut |
nuclear@5 | 7 |
nuclear@5 | 8 .PHONY: all |
nuclear@5 | 9 all: .clang_complete $(bin) |
nuclear@5 | 10 |
nuclear@5 | 11 $(bin): $(obj) |
nuclear@5 | 12 $(CC) -o $@ $(obj) $(LDFLAGS) |
nuclear@5 | 13 |
nuclear@5 | 14 .clang_complete: |
nuclear@5 | 15 echo '-x c' >$@ |
nuclear@5 | 16 for i in $(CFLAGS); do echo $$i >>$@; done |
nuclear@5 | 17 |
nuclear@5 | 18 .PHONY: clean |
nuclear@5 | 19 clean: |
nuclear@5 | 20 rm -f $(obj) $(bin) |