projects
/
assman
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
- mod_path (untested)
[assman]
/
Makefile
1
src = $(wildcard src/*.c)
2
obj = $(src:.c=.o)
3
dep = $(obj:.o=.d)
4
5
name = assman
6
lib_a = lib$(name).a
7
8
warn = -pedantic -Wall
9
dbg = -g
10
opt = -O0
11
12
CFLAGS = $(warn) $(dbg) $(opt) $(inc)
13
LDFLAGS =
14
15
$(lib_a): $(obj)
16
$(AR) rcs $@ $(obj)
17
18
%.d: %.c
19
@echo "generating depfile $< -> $@"
20
@$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
21
22
.PHONY: clean
23
clean:
24
rm -f $(obj) $(bin)
25
26
.PHONY: cleandep
27
cleandep:
28
rm -f $(dep)