root/src/Makefile.in

Revision f921b22e683e77376b8ad3a675d5a9a20e92e912, 1.9 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 7 years ago)

implements filter sets, fixes #24

  • 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 SUBS=utils eventer modules noitedit
27
28 NOIT_OBJS=noitd.o noit_listener.o \
29         noit_console.o noit_console_state.o noit_console_telnet.o \
30         noit_check.o noit_check_log.o noit_check_tools.o \
31         noit_module.o noit_conf.o noit_conf_checks.o noit_tokenizer.o \
32         noit_jlog_listener.o noit_filters.o
33
34 STRATCON_OBJS=stratcond.o noit_listener.o \
35         noit_console.o noit_console_state.o noit_console_telnet.o \
36         noit_conf.o noit_tokenizer.o \
37         stratcon_jlog_streamer.o stratcon_datastore.o
38
39 all:    noitd stratcond
40
41 make-subdirs:   serf/.libs/libserf-0.o jlog/libjlog.a
42         for dir in $(SUBS) ; do \
43                 (cd $$dir && make) ; \
44         done
45
46 jlog/libjlog.a:
47         (cd jlog && make libjlog.a)
48
49 serf/.libs/libserf-0.a:
50         (cd serf && python serfmake)
51
52 serf/.libs/libserf-0.o: serf/.libs/libserf-0.a
53         ld -r -o serf/.libs/libserf-0.o \
54                 serf/.libs/context.o serf/buckets/.libs/*.o
55
56 noitd:  make-subdirs $(NOIT_OBJS)
57         @$(CC) -o $@ $(NOIT_OBJS) \
58                 $(LDFLAGS) \
59                 -Leventer -leventer \
60                 -Lutils -lnoit_utils \
61                 -Ljlog -ljlog \
62                 -Lnoitedit -lnoitedit \
63                 $(LIBS)
64         @echo "- linking $@"
65
66 stratcond:      make-subdirs $(STRATCON_OBJS)
67         @$(CC) -o $@ $(STRATCON_OBJS) \
68                 $(LDFLAGS) \
69                 -Leventer -leventer \
70                 -Lutils -lnoit_utils \
71                 -Ljlog -ljlog \
72                 -Lnoitedit -lnoitedit \
73                 $(LIBS) $(PGLIBS)
74         @echo "- linking $@"
75
76 .c.o:
77         @$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
78         @echo "- compiling $<"
79
80 noit_tokenizer.c:       noit_tokenizer.re
81         @re2c -o $@ noit_tokenizer.re
82         @echo "- re2c $<"
83
84 clean-subdirs:
85         for dir in $(SUBS) ; do \
86                 (cd $$dir && make clean) ; \
87         done
88
89 clean:  clean-subdirs
90         rm -f *.o noitd
91
Note: See TracBrowser for help on using the browser.