midifile
diff Makefile @ 0:3658e56b3a8a
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 26 Jan 2012 00:31:39 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/Makefile Thu Jan 26 00:31:39 2012 +0200 1.3 @@ -0,0 +1,18 @@ 1.4 +src = $(wildcard src/*.c) test.c 1.5 +obj = $(src:.c=.o) 1.6 +dep = $(obj:.o=.d) 1.7 +bin = test 1.8 + 1.9 +CFLAGS = -pedantic -Wall -g -Isrc 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)