projects
/
sip-router
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
First working release
[sip-router]
/
Makefile
1
# $Id$
2
#
3
# sip_router makefile
4
#
5
6
sources= $(wildcard *.c)
7
objs= $((sources:.c=.o)
8
depends= $(sources:.c=.d)
9
10
NAME=sip_router
11
12
CC=gcc
13
COPTS=-O2
14
ALLDEP=Makefile
15
16
MKDEP=gcc -M
17
18
19
#implicit rules
20
21
%.o:%.c $(ALLDEP)
22
$(CC) $(COPTS) -c $< -o $@
23
24
%.d: %.c
25
$(MKDEP) $< >$@
26
27
$(NAME): $(objs)
28
$(CC) $(COPTS) $(objs) -o $(NAME)
29
30
.PHONY: all
31
all: $(NAME)
32
33
.PHONY: dep
34
dep: $(depends)
35
36
.PHONY: clean
37
clean:
38
-rm $(objs) $(NAME)
39
40
.PHONY: proper
41
proper: clean
42
-rm $(depends)
43
44
include $(depends)
45
46
47
48