dsys2
view Makefile @ 1:0851b4724d13
added readme and license
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 20 Aug 2011 07:57:00 +0300 |
parents | |
children | 1705e550bd91 |
line source
1 src = $(wildcard src/*.c)
2 obj = $(src:.c=.o)
3 dep = $(obj:.o=.d)
5 lib_a = libdsys2.a
7 CC = gcc
8 AR = ar
9 CFLAGS = -pedantic -Wall -g
11 $(lib_a): $(obj)
12 $(AR) rcs $@ $(obj)
14 -include $(dep)
16 %.d: %.c
17 @$(CPP) $(CFLAGS) -MM -MT $(@:.d=.o) $< >$@
19 .PHONY: clean
20 clean:
21 rm -f $(obj) $(bin)
23 .PHONY: cleandep
24 cleandep:
25 rm -f $(dep)