root/src/Makefile.in

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

split out the noit(check) specific conf stuff into its own file

  • 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 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
32 all:    noitd testcerts
33
34 make-subdirs:   serf/.libs/libserf-0.a
35         for dir in $(SUBS) ; do \
36                 (cd $$dir && make) ; \
37         done
38
39 serf/.libs/libserf-0.a:
40         (cd serf && python serfmake)
41
42 noitd:  make-subdirs $(OBJS)
43         $(CC) -o $@ $(OBJS) \
44                 $(LDFLAGS) \
45                 -Leventer -leventer \
46                 -Lutils -lnoit_utils \
47                 -Ljlog -ljlog \
48                 -Lnoitedit -lnoitedit \
49                 $(LIBS)
50
51 .c.o:
52         $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
53
54 noit_tokenizer.c:       noit_tokenizer.re
55         re2c -o $@ noit_tokenizer.re
56
57 test.key:
58         openssl genrsa -out test.key
59
60 test.csr:       test.key
61         openssl req -key test.key -days 365 -new -out test.csr
62
63 test.crt:       test.key test.csr
64         openssl x509 -req -in test.csr -signkey test.key -out test.crt
65
66 test-strat.key:
67         openssl genrsa -out test-strat.key
68
69 test-strat.csr: test-strat.key
70         openssl req -key test-strat.key -days 365 -new -out test-strat.csr
71
72 test-strat.crt: test-strat.key test-strat.csr
73         openssl x509 -req -in test-strat.csr -signkey test-strat.key -out test-strat.crt
74
75 testcerts:      test.key test.crt test-strat.key test-strat.crt
76
77 clean-subdirs:
78         for dir in $(SUBS) ; do \
79                 (cd $$dir && make clean) ; \
80         done
81
82 clean:  clean-subdirs
83         rm -f *.o noitd test.key test.csr test.crt
84
Note: See TracBrowser for help on using the browser.