root/src/Makefile.in

Revision b0c153fce5b4700249d5d6183ffe833ea677780a, 2.1 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 10 years ago)

refs #29

  • 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 PGLIBS=@PGLIBS@
9 INSTALL=@INSTALL@
10
11 prefix=@prefix@
12 exec_prefix=@exec_prefix@
13 bindir=@bindir@
14 sbindir=@sbindir@
15 libdir=@libdir@
16 includedir=${prefix}/include
17 libexecdir=@libexecdir@
18 datarootdir = @datarootdir@
19 mandir=@mandir@
20 mansubdir=@mansubdir@
21 docdir=${prefix}/@docdir@
22 sysconfdir=@sysconfdir@
23 srcdir=@srcdir@
24 top_srcdir=@top_srcdir@
25
26 WHOLE_ARCHIVE=@WHOLE_ARCHIVE@
27 NOWHOLE_ARCHIVE=@NOWHOLE_ARCHIVE@
28
29 SUBS=lua utils eventer modules noitedit
30
31 NOIT_OBJS=noitd.o noit_listener.o \
32         noit_console.o noit_console_state.o noit_console_telnet.o \
33         noit_check.o noit_check_log.o noit_check_tools.o \
34         noit_module.o noit_conf.o noit_conf_checks.o noit_tokenizer.o \
35         noit_jlog_listener.o noit_filters.o
36
37 STRATCON_OBJS=stratcond.o noit_listener.o \
38         noit_console.o noit_console_state.o noit_console_telnet.o \
39         noit_conf.o noit_tokenizer.o \
40         stratcon_jlog_streamer.o stratcon_datastore.o
41
42 all:    noitd stratcond
43
44 make-subdirs:   serf/.libs/libserf-0.o jlog/libjlog.a
45         for dir in $(SUBS) ; do \
46                 (cd $$dir && make) ; \
47         done
48
49 jlog/libjlog.a:
50         (cd jlog && make libjlog.a)
51
52 serf/.libs/libserf-0.a:
53         (cd serf && python serfmake)
54
55 serf/.libs/libserf-0.o: serf/.libs/libserf-0.a
56         ld -r -o serf/.libs/libserf-0.o \
57                 serf/.libs/context.o serf/buckets/.libs/*.o
58
59 noitd:  make-subdirs $(NOIT_OBJS)
60         @$(CC) -o $@ $(NOIT_OBJS) \
61                 $(LDFLAGS) \
62                 $(WHOLE_ARCHIVE) \
63                 -Leventer -leventer \
64                 -Lutils -lnoit_utils \
65                 -Ljlog -ljlog \
66                 -Lnoitedit -lnoitedit \
67                 $(NOWHOLE_ARCHIVE) \
68                 $(LIBS)
69         @echo "- linking $@"
70
71 stratcond:      make-subdirs $(STRATCON_OBJS)
72         @$(CC) -o $@ $(STRATCON_OBJS) \
73                 $(LDFLAGS) \
74                 $(WHOLE_ARCHIVE) \
75                 -Leventer -leventer \
76                 -Lutils -lnoit_utils \
77                 -Ljlog -ljlog \
78                 -Lnoitedit -lnoitedit \
79                 $(NOWHOLE_ARCHIVE) \
80                 $(LIBS) $(PGLIBS)
81         @echo "- linking $@"
82
83 .c.o:
84         @$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
85         @echo "- compiling $<"
86
87 noit_tokenizer.c:       noit_tokenizer.re
88         @re2c -o $@ noit_tokenizer.re
89         @echo "- re2c $<"
90
91 clean-subdirs:
92         for dir in $(SUBS) ; do \
93                 (cd $$dir && make clean) ; \
94         done
95
96 clean:  clean-subdirs
97         rm -f *.o noitd
98
Note: See TracBrowser for help on using the browser.