root/src/Makefile.in

Revision 5a9b91bc0a14543e0995eba973fbeacc05aaee8b, 2.3 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 6 years ago)

svn merge -r 327:330 https://labs.omniti.com/reconnoiter/branches/dev/udns .

closes #38

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