Revision d0917666cea8e5f782203cebb922a998c939dfa6, 1.0 kB
(checked in by Theo Schlossnagle <jesus@omniti.com>, 10 years ago)
|
add serf and build it as a part of the make process
|
- Property mode set to
100644
|
Line | |
---|
1 |
CC=@CC@ |
---|
2 |
CPPFLAGS=@CPPFLAGS@ |
---|
3 |
CFLAGS=@CFLAGS@ |
---|
4 |
LDFLAGS=@LDFLAGS@ |
---|
5 |
AR=@AR@ |
---|
6 |
RANLIB=@RANLIB@ |
---|
7 |
LIBS=@LIBS@ |
---|
8 |
INSTALL=@INSTALL@ |
---|
9 |
|
---|
10 |
prefix=@prefix@ |
---|
11 |
exec_prefix=@exec_prefix@ |
---|
12 |
bindir=@bindir@ |
---|
13 |
sbindir=@sbindir@ |
---|
14 |
libdir=@libdir@ |
---|
15 |
includedir=${prefix}/include |
---|
16 |
libexecdir=@libexecdir@ |
---|
17 |
datarootdir = @datarootdir@ |
---|
18 |
mandir=@mandir@ |
---|
19 |
mansubdir=@mansubdir@ |
---|
20 |
docdir=${prefix}/@docdir@ |
---|
21 |
sysconfdir=@sysconfdir@ |
---|
22 |
srcdir=@srcdir@ |
---|
23 |
top_srcdir=@top_srcdir@ |
---|
24 |
|
---|
25 |
SUBS=utils jlog eventer modules |
---|
26 |
|
---|
27 |
OBJS=noitd.o noit_listener.o noit_console.o noit_poller.o \ |
---|
28 |
noit_module.o noit_conf.o |
---|
29 |
|
---|
30 |
all: noitd |
---|
31 |
|
---|
32 |
make-subdirs: serf/.libs/libserf-0.a |
---|
33 |
for dir in $(SUBS) ; do \ |
---|
34 |
(cd $$dir && make) ; \ |
---|
35 |
done |
---|
36 |
|
---|
37 |
serf/.libs/libserf-0.a: |
---|
38 |
(cd serf && python serfmake) |
---|
39 |
|
---|
40 |
noitd: make-subdirs $(OBJS) |
---|
41 |
$(CC) -o $@ $(OBJS) \ |
---|
42 |
$(LDFLAGS) \ |
---|
43 |
-Leventer -leventer \ |
---|
44 |
-Lutils -lnoit_utils \ |
---|
45 |
-Ljlog -ljlog \ |
---|
46 |
$(LIBS) |
---|
47 |
|
---|
48 |
.c.o: |
---|
49 |
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< |
---|
50 |
|
---|
51 |
clean-subdirs: |
---|
52 |
for dir in $(SUBS) ; do \ |
---|
53 |
(cd $$dir && make clean) ; \ |
---|
54 |
done |
---|
55 |
|
---|
56 |
clean: clean-subdirs |
---|
57 |
rm -f *.o noitd |
---|
58 |
|
---|