packio
view Makefile @ 1:a5728bc6a02f
moving along
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 09 Jan 2015 02:31:29 +0200 |
parents | |
children |
line source
1 PREFIX = /usr/local
3 src = $(wildcard src/*.c)
4 obj = $(src:.c=.o)
5 dep = $(obj:.o=.d)
6 name = packio
8 lib_a = lib$(name).a
10 inc = -Iinclude
12 CFLAGS = -pedantic -Wall -g $(pic) $(inc)
14 $(lib_a): $(obj)
15 $(AR) rcs $@ $(obj)
17 -include $(dep)
19 %.d: %.c
20 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
22 .PHONY: clean
23 clean:
24 rm -f $(obj) $(dep) $(lib_a)