dsys2
diff Makefile @ 0:34d90cd9ef9b
starting a new demosystem
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 20 Aug 2011 07:48:16 +0300 |
parents | |
children | 1705e550bd91 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/Makefile Sat Aug 20 07:48:16 2011 +0300 1.3 @@ -0,0 +1,25 @@ 1.4 +src = $(wildcard src/*.c) 1.5 +obj = $(src:.c=.o) 1.6 +dep = $(obj:.o=.d) 1.7 + 1.8 +lib_a = libdsys2.a 1.9 + 1.10 +CC = gcc 1.11 +AR = ar 1.12 +CFLAGS = -pedantic -Wall -g 1.13 + 1.14 +$(lib_a): $(obj) 1.15 + $(AR) rcs $@ $(obj) 1.16 + 1.17 +-include $(dep) 1.18 + 1.19 +%.d: %.c 1.20 + @$(CPP) $(CFLAGS) -MM -MT $(@:.d=.o) $< >$@ 1.21 + 1.22 +.PHONY: clean 1.23 +clean: 1.24 + rm -f $(obj) $(bin) 1.25 + 1.26 +.PHONY: cleandep 1.27 +cleandep: 1.28 + rm -f $(dep)