root/src/Makefile.in

Revision 5b61a6d032b3594aa2a2f47193da750ed8eb669a, 7.8 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 4 years ago)

stupid typo

  • Property mode set to 100644
Line 
1 .SUFFIXES: .re .c
2
3 CC=@CC@
4 CPPFLAGS=@CPPFLAGS@
5 CFLAGS=@CFLAGS@
6 PGCFLAGS=@PGCFLAGS@
7 LDFLAGS=@LDFLAGS@
8 AR=@AR@
9 RANLIB=@RANLIB@
10 LIBS=@LIBS@
11 PGLIBS=@PGLIBS@
12 INSTALL=@INSTALL@
13 XML2H=@top_srcdir@/buildtools/xml2h
14
15 prefix=@prefix@
16 exec_prefix=@exec_prefix@
17 bindir=@bindir@
18 sbindir=@sbindir@
19 libdir=@libdir@
20 includedir=${prefix}/include
21 libexecdir=@libexecdir@
22 datarootdir = @datarootdir@
23 mandir=@mandir@
24 mansubdir=@mansubdir@
25 docdir=${prefix}/@docdir@
26 sysconfdir=@sysconfdir@
27 srcdir=@srcdir@
28 top_srcdir=@top_srcdir@
29 MODULES_DIR=@MODULES_DIR@
30
31 WHOLE_ARCHIVE=@WHOLE_ARCHIVE@
32 NOWHOLE_ARCHIVE=@NOWHOLE_ARCHIVE@
33
34 MODDIR=modules
35
36 HEADERS=noit_capabilities_listener.h noit_check.h noit_check_rest.h \
37         noit_check_tools.h noit_conf.h noit_conf_checks.h noit_conf_private.h \
38         noit_config.h noit_console.h noit_console_telnet.h noit_defines.h \
39         noit_filters.h noit_http.h noit_jlog_listener.h noit_listener.h \
40         noit_livestream_listener.h noit_module.h noit_rest.h noit_tokenizer.h \
41         noit_xml.h \
42         stratcon_datastore.h stratcon_iep.h stratcon_jlog_streamer.h \
43         stratcon_realtime_http.h \
44         eventer/OETS_asn1_helper.h eventer/eventer.h \
45         eventer/eventer_POSIX_fd_opset.h eventer/eventer_SSL_fd_opset.h \
46         eventer/eventer_jobq.h \
47         utils/noit_atomic.h utils/noit_b64.h utils/noit_hash.h \
48         utils/noit_log.h utils/noit_mkdir.h utils/noit_security.h \
49         utils/noit_sem.h utils/noit_skiplist.h utils/noit_str.h \
50         utils/noit_watchdog.h \
51         noitedit/chared.h noitedit/common.h noitedit/compat.h noitedit/el.h \
52         noitedit/el_term.h noitedit/emacs.h noitedit/fcns.h noitedit/fgetln.h \
53         noitedit/help.h noitedit/hist.h noitedit/histedit.h noitedit/key.h \
54         noitedit/map.h noitedit/parse.h noitedit/prompt.h noitedit/refresh.h \
55         noitedit/search.h noitedit/sig.h noitedit/strlcpy.h noitedit/sys.h \
56         noitedit/tokenizer.h noitedit/tty.h noitedit/vi.h \
57         jlog/jlog.h jlog/jlog_config.h jlog/jlog_hash.h jlog/jlog_io.h
58
59 NOIT_OBJS=noitd.o noit_listener.o \
60         noit_console.o noit_console_state.o noit_console_telnet.o \
61         noit_console_complete.o \
62         noit_check.o noit_check_log.o noit_check_tools.o \
63         noit_module.o noit_conf.o noit_conf_checks.o noit_tokenizer.o \
64         noit_capabilities_listener.o noit_xml.o \
65         noit_jlog_listener.o noit_livestream_listener.o noit_filters.o \
66         noit_http.o noit_rest.o noit_check_rest.o noit_filters_rest.o
67
68 NOIT_LIBS=udns/libudns.o noitedit/libnoitedit.a eventer/libeventer.a \
69         jlog/libjlog.a utils/libnoit_utils.a
70
71 STRATCON_OBJS=stratcond.o noit_listener.o \
72         noit_console.o noit_console_state.o noit_console_telnet.o \
73         noit_console_complete.o noit_xml.o \
74         noit_conf.o noit_http.o noit_rest.o noit_tokenizer.o \
75         noit_capabilities_listener.o noit_module.o \
76         stratcon_realtime_http.o \
77         stratcon_jlog_streamer.o stratcon_datastore.o \
78         stratcon_iep.o
79
80 STRATCON_LIBS=udns/libudns.o noitedit/libnoitedit.a eventer/libeventer.a \
81         jlog/libjlog.a utils/libnoit_utils.a
82
83 all:    noitd stratcond noit.conf test-noit.conf stratcon.conf test-stratcon.conf java-bits make-modules make-man
84
85 make-man:
86         @(cd man && make -s)
87
88 lua/liblua.lo:
89         @echo "- building lua bits"
90         @(cd lua && make -s liblua.lo)
91
92 make-modules:   lua/liblua.lo
93         @for dir in $(MODDIR) ; do \
94                 (cd $$dir && make -s) ; \
95         done
96
97 java-bits:
98         @test -n "@JAVAPARTS@" && (cd java && make -s)
99
100 jlog/libjlog.a:
101         @echo "- building jlog bits"
102         @(cd jlog && make -s libjlog.a)
103
104 udns/libudns.o:
105         @echo "- building udns bits"
106         @(cd udns && make -s libudns.o)
107
108 noitedit/libnoitedit.a:
109         @echo "- building noitedit bits"
110         @(cd noitedit && make -s libnoitedit.a)
111
112 eventer/libeventer.a:
113         @echo "- building eventer bits"
114         @(cd eventer && make -s libeventer.a)
115
116 utils/libnoit_utils.a:
117         @echo "- building utils bits"
118         @(cd utils && make -s libnoit_utils.a)
119
120 man/noitd.usage.h:      make-man
121
122 man/stratcond.usage.h:  make-man
123
124 noitd.o:        man/noitd.usage.h
125 stratcond.o:    man/stratcond.usage.h
126
127 noitd:  $(NOIT_OBJS) $(NOIT_LIBS) man/noitd.usage.h
128         @$(CC) -o $@ $(NOIT_OBJS) \
129                 udns/libudns.o \
130                 $(LDFLAGS) \
131                 $(WHOLE_ARCHIVE) \
132                 -Leventer -leventer \
133                 utils/*.o \
134                 -Ljlog -ljlog \
135                 -Lnoitedit -lnoitedit \
136                 $(NOWHOLE_ARCHIVE) \
137                 $(LIBS)
138         @echo "- linking $@"
139
140 stratcond:      $(STRATCON_OBJS) $(STRATCON_LIBS)
141         @$(CC) -o $@ $(STRATCON_OBJS) \
142                 udns/libudns.o \
143                 $(LDFLAGS) \
144                 $(WHOLE_ARCHIVE) \
145                 -Leventer -leventer \
146                 utils/*.o \
147                 -Ljlog -ljlog \
148                 -Lnoitedit -lnoitedit \
149                 $(NOWHOLE_ARCHIVE) \
150                 $(LIBS) $(PGLIBS)
151         @echo "- linking $@"
152
153 stratcon_datastore.o:   stratcon_datastore.c
154         @$(CC) $(CPPFLAGS) $(PGCFLAGS) $(CFLAGS) -c $<
155         @echo "- compiling $<"
156
157 .c.o:
158         @$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
159         @echo "- compiling $<"
160
161 noit_module.o:  module-online.h
162
163 module-online.h:        modules/module-online.xsl
164         @echo "- making module-online.h (StyleSheet include)"
165         @$(XML2H) helpStyleXML < modules/module-online.xsl > $@
166
167 noit_tokenizer.c:       noit_tokenizer.re
168         @re2c -o $@ noit_tokenizer.re
169         @echo "- re2c noit_tokenizer.re"
170
171 test-noit.conf: noit.conf.in Makefile
172         @sed -e "s^%sysconfdir%^`pwd`^g;" \
173                 -e "s^%modulesdir%^`pwd`/modules^g;" \
174                 -e "s^%modulesluadir%^`pwd`/modules-lua^g;" \
175                 -e "s^%PKIPREFIX%^../test/test-^g;" < \
176                 noit.conf.in > \
177                 test-noit.conf
178
179 noit.conf:      noit.conf.in Makefile
180         @sed -e "s^%sysconfdir%^$(sysconfdir)^g;" \
181                 -e "s^%modulesdir%^$(MODULES_DIR)^g;" \
182                 -e "s^%modulesluadir%^$(MODULES_DIR)^g;" \
183                 -e "s^%PKIPREFIX%^$${PKIPREFIX}^g;" < \
184                 noit.conf.in > \
185                 noit.conf
186
187 test-stratcon.conf:     stratcon.conf.in Makefile
188         @sed -e "s^%sysconfdir%^`pwd`^g;" \
189                 -e "s^%modulesdir%^`pwd`/modules^g;" \
190                 -e "s^%modulesluadir%^`pwd`/modules-lua^g;" \
191                 -e "s^%iepbindir%^`pwd`/java^g;" \
192                 -e "s^%iepdbdir%^`pwd`/java^g;" \
193                 -e "s^%PKIPREFIX%^../test/test-^g;" < \
194                 stratcon.conf.in > \
195                 test-stratcon.conf
196
197 stratcon.conf:  stratcon.conf.in Makefile
198         @sed -e "s^%sysconfdir%^$(sysconfdir)^g;" \
199                 -e "s^%modulesdir%^$(MODULES_DIR)^g;" \
200                 -e "s^%modulesluadir%^$(MODULES_DIR)^g;" \
201                 -e "s^%iepbindir%^$(bindir)^g;" \
202                 -e "s^%iepdbdir%^$(prefix)/var/db/noit-iep^g;" \
203                 -e "s^%PKIPREFIX%^$${PKIPREFIX}^g;" < \
204                 stratcon.conf.in > \
205                 stratcon.conf
206
207 install-dirs:
208         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(bindir)
209         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(sbindir)
210         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(sysconfdir)
211
212 install-headers:        $(HEADERS)
213         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(bindir)
214         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(includedir)
215         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(includedir)/eventer
216         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(includedir)/utils
217         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(includedir)/noitedit
218         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(includedir)/jlog
219         $(INSTALL) -m 0755 scripts/noit-config $(DESTDIR)$(bindir)/noit-config
220         for file in $(HEADERS) ; do \
221                 $(INSTALL) -m 0644 $$file $(DESTDIR)$(includedir)/$$file ; \
222         done
223
224 install-noitd:  install-dirs noitd noit.conf
225         $(INSTALL) -m 0755 scripts/noittrap $(DESTDIR)$(bindir)/noittrap
226         $(INSTALL) -m 0755 noitd $(DESTDIR)$(sbindir)/noitd
227         $(INSTALL) -m 0644 noit.conf $(DESTDIR)$(sysconfdir)/noit.conf.sample
228         $(INSTALL) -m 0644 default-ca-chain.crt $(DESTDIR)$(sysconfdir)/default-ca-chain.crt
229         (cd modules && make install-modules DESTDIR=$(DESTDIR))
230         (cd modules-lua && make install DESTDIR=$(DESTDIR))
231
232 install-stratcond:      install-dirs stratcond stratcon.conf java-bits
233         $(INSTALL) -m 0755 stratcond $(DESTDIR)$(sbindir)/stratcond
234         $(INSTALL) -m 0644 stratcon.conf $(DESTDIR)$(sysconfdir)/stratcon.conf.sample
235         (cd modules && make install-smodules DESTDIR=$(DESTDIR))
236         test -n "@JAVAPARTS@" && (cd @JAVAPARTS@ && make install DESTDIR=$(DESTDIR))
237
238 install-docs:
239         (cd man && make install DESTDIR=$(DESTDIR))
240
241 install:        install-dirs install-docs install-headers install-noitd install-stratcond
242
243 clean:
244         rm -f *.o noitd
245         rm -f jlog/libjlog.a
246         (cd jlog && make clean)
247         (cd eventer && make clean)
248         (cd udns && make clean)
249         (cd man && make clean)
250         (cd modules && make clean)
251         (cd noitedit && make clean)
252         (cd utils && make clean)
253         (cd lua && make clean)
254         (cd java && make clean)
255
Note: See TracBrowser for help on using the browser.