root/src/Makefile.in

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

jlog pulling

  • 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 noitedit
26
27 NOIT_OBJS=noitd.o noit_listener.o \
28         noit_console.o noit_console_state.o noit_console_telnet.o \
29         noit_check.o noit_check_log.o noit_check_tools.o \
30         noit_module.o noit_conf.o noit_conf_checks.o noit_tokenizer.o \
31         noit_jlog_listener.o
32
33 STRATCON_OBJS=stratcond.o noit_listener.o \
34         noit_console.o noit_console_state.o noit_console_telnet.o \
35         noit_conf.o noit_tokenizer.o \
36         stratcon_jlog_streamer.o stratcon_datastore.o
37
38 all:    noitd stratcond testcerts
39
40 make-subdirs:   serf/.libs/libserf-0.a
41         for dir in $(SUBS) ; do \
42                 (cd $$dir && make) ; \
43         done
44
45 serf/.libs/libserf-0.a:
46         (cd serf && python serfmake)
47
48 noitd:  make-subdirs $(NOIT_OBJS)
49         $(CC) -o $@ $(NOIT_OBJS) \
50                 $(LDFLAGS) \
51                 -Leventer -leventer \
52                 -Lutils -lnoit_utils \
53                 -Ljlog -ljlog \
54                 -Lnoitedit -lnoitedit \
55                 $(LIBS)
56
57 stratcond:      make-subdirs $(STRATCON_OBJS)
58         $(CC) -o $@ $(STRATCON_OBJS) \
59                 $(LDFLAGS) \
60                 -Leventer -leventer \
61                 -Lutils -lnoit_utils \
62                 -Ljlog -ljlog \
63                 -Lnoitedit -lnoitedit \
64                 $(LIBS)
65
66 .c.o:
67         $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
68
69 noit_tokenizer.c:       noit_tokenizer.re
70         re2c -o $@ noit_tokenizer.re
71
72 # This stuff if all cert stuff to make testing the daemons easier
73
74 demoCA-dir:
75         @mkdir -p demoCA
76         @touch demoCA/index.txt
77         @test -f demoCA/serial || echo 00 > demoCA/serial
78
79 test-ca.key:
80         openssl genrsa -out test-ca.key
81
82 test-ca.csr:    test-ca.key
83         openssl req -key test-ca.key -days 365 -new -out test-ca.csr
84
85 test-ca.crt:    test-ca.key test-ca.csr
86         openssl x509 -req -in test-ca.csr -signkey test-ca.key -out test-ca.crt
87
88 test.key:
89         openssl genrsa -out test.key
90
91 test.csr:       test.key
92         openssl req -key test.key -days 365 -new -out test.csr
93
94 test.crt:       test.csr test-ca.key
95         openssl ca -in test.csr -out test.crt -outdir . -keyfile test-ca.key -cert test-ca.crt -days 120
96
97 test-strat.key:
98         openssl genrsa -out test-strat.key
99
100 test-strat.csr: test-strat.key
101         openssl req -key test-strat.key -days 365 -new -out test-strat.csr
102
103 test-strat.crt: test-strat.csr test-ca.key
104         openssl ca -in test-strat.csr -out test-strat.crt -outdir . -keyfile test-ca.key -cert test-ca.crt -days 120
105
106 testcerts:      demoCA-dir test.key test.crt test-strat.key test-strat.crt test-ca.key test-ca.crt
107
108 clean-subdirs:
109         for dir in $(SUBS) ; do \
110                 (cd $$dir && make clean) ; \
111         done
112
113 clean-keys:
114         test.key test.csr test.crt test-strat.key test-strat.csr test-strat.crt
115
116 clean:  clean-subdirs
117         rm -f *.o noitd
118
Note: See TracBrowser for help on using the browser.