tinywebd

annotate Makefile @ 3:852a745503cf

http header parsing, not tested
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 16 Apr 2015 15:20:16 +0300
parents
children 0dd50a23f3dd
rev   line source
nuclear@0 1 src = $(wildcard src/*.c)
nuclear@0 2 obj = $(src:.c=.o)
nuclear@0 3 dep = $(obj:.o=.d)
nuclear@0 4 bin = tinywebd
nuclear@0 5
nuclear@0 6 CFLAGS = -pedantic -Wall -g
nuclear@0 7
nuclear@0 8 $(bin): $(obj)
nuclear@0 9 $(CC) -o $@ $(obj) $(LDFLAGS)
nuclear@0 10
nuclear@0 11 -include $(dep)
nuclear@0 12
nuclear@0 13 %.d: %.c
nuclear@0 14 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
nuclear@0 15
nuclear@0 16 .PHONY: clean
nuclear@0 17 clean:
nuclear@0 18 rm -f $(obj) $(bin)