projects
/
visor
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
foo
[visor]
/
libvisor
/
Makefile
1
src = $(wildcard src/*.c)
2
obj = $(src:.c=.o)
3
dep = $(obj:.o=.d)
4
5
liba = libvisor.a
6
7
CFLAGS = -pedantic -Wall -g -Iinclude
8
9
$(liba): $(obj)
10
$(AR) rcs $@ $(obj)
11
12
-include $(dep)
13
14
%.d: %.c
15
@echo "dep $@"
16
@$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
17
18
.PHONY: clean
19
clean:
20
rm -f $(obj) $(liba)
21
22
.PHONY: cleandep
23
cleandep:
24
rm -f $(dep)