tinywebd
diff Makefile @ 0:9c9e24956d99
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 14 Apr 2015 02:13:29 +0300 |
parents | |
children | 0dd50a23f3dd |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/Makefile Tue Apr 14 02:13:29 2015 +0300 1.3 @@ -0,0 +1,18 @@ 1.4 +src = $(wildcard src/*.c) 1.5 +obj = $(src:.c=.o) 1.6 +dep = $(obj:.o=.d) 1.7 +bin = tinywebd 1.8 + 1.9 +CFLAGS = -pedantic -Wall -g 1.10 + 1.11 +$(bin): $(obj) 1.12 + $(CC) -o $@ $(obj) $(LDFLAGS) 1.13 + 1.14 +-include $(dep) 1.15 + 1.16 +%.d: %.c 1.17 + @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@ 1.18 + 1.19 +.PHONY: clean 1.20 +clean: 1.21 + rm -f $(obj) $(bin)