tinywebd
view Makefile @ 6:4f191dbfac7e
commited a bunch of missing files from previous commits
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 17 Apr 2015 01:57:25 +0300 |
parents | |
children | 0dd50a23f3dd |
line source
1 src = $(wildcard src/*.c)
2 obj = $(src:.c=.o)
3 dep = $(obj:.o=.d)
4 bin = tinywebd
6 CFLAGS = -pedantic -Wall -g
8 $(bin): $(obj)
9 $(CC) -o $@ $(obj) $(LDFLAGS)
11 -include $(dep)
13 %.d: %.c
14 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
16 .PHONY: clean
17 clean:
18 rm -f $(obj) $(bin)