root/src/Makefile.in

Revision 257eda63f97f5a4da420a3ef9ed0b8ee25ccc840, 1.6 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 6 years ago)

move test certificate generation support into its own directory

  • 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 jlog 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
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.a
42         for dir in $(SUBS) ; do \
43                 (cd $$dir && make) ; \
44         done
45
46 serf/.libs/libserf-0.a:
47         (cd serf && python serfmake)
48
49 noitd:  make-subdirs $(NOIT_OBJS)
50         $(CC) -o $@ $(NOIT_OBJS) \
51                 $(LDFLAGS) \
52                 -Leventer -leventer \
53                 -Lutils -lnoit_utils \
54                 -Ljlog -ljlog \
55                 -Lnoitedit -lnoitedit \
56                 $(LIBS)
57
58 stratcond:      make-subdirs $(STRATCON_OBJS)
59         $(CC) -o $@ $(STRATCON_OBJS) \
60                 $(LDFLAGS) \
61                 -Leventer -leventer \
62                 -Lutils -lnoit_utils \
63                 -Ljlog -ljlog \
64                 -Lnoitedit -lnoitedit \
65                 $(LIBS) $(PGLIBS)
66
67 .c.o:
68         $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
69
70 noit_tokenizer.c:       noit_tokenizer.re
71         re2c -o $@ noit_tokenizer.re
72
73 clean-subdirs:
74         for dir in $(SUBS) ; do \
75                 (cd $$dir && make clean) ; \
76         done
77
78 clean:  clean-subdirs
79         rm -f *.o noitd
80
Note: See TracBrowser for help on using the browser.