tinygi
diff Makefile @ 0:16fdca2a1ef5
initial tinygi commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 19 Jul 2015 18:30:29 +0300 |
parents | |
children | 72752a1b3dbe |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/Makefile Sun Jul 19 18:30:29 2015 +0300 1.3 @@ -0,0 +1,23 @@ 1.4 +src = $(wildcard src/*.c) 1.5 +obj = $(src:.c=.o) 1.6 +dep = $(obj:.o=.d) 1.7 + 1.8 +bin = tgi 1.9 + 1.10 +CFLAGS = -pedantic -Wall -g 1.11 + 1.12 +$(bin): $(obj) 1.13 + $(CC) -o $@ $(obj) $(LDFLAGS) 1.14 + 1.15 +-include $(dep) 1.16 + 1.17 +%.d: %.c 1.18 + @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@ 1.19 + 1.20 +.PHONY: clean 1.21 +clean: 1.22 + rm -f $(obj) $(bin) 1.23 + 1.24 +.PHONY: cleandep 1.25 +cleandep: 1.26 + rm -f $(dep)