root/src/Makefile.in

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

prep for jlog transit over SSL

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