root/src/Makefile.in

Revision 1b3b900ebb59c9bbf66053a2a171e48bee289446, 15.2 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 1 week ago)

Import tip of omniti-labs/jlog and deliver jlogtail as noit_jlogtail.

  • Property mode set to 100644
Line 
1 .SUFFIXES: .re .c
2
3 CC=@CC@
4 CPPFLAGS=@CPPFLAGS@
5 CFLAGS=@CFLAGS@
6 SHCFLAGS=@SHCFLAGS@
7 CLINKFLAGS=@CLINKFLAGS@
8 LUACFLAGS=@LUACFLAGS@
9 PGCFLAGS=@PGCFLAGS@
10 LDFLAGS=@LDFLAGS@
11 SHLDFLAGS=@SHLDFLAGS@
12 DEPFLAGS=@DEPFLAGS@
13 MODULELD=@MODULELD@
14 AR=@AR@
15 RANLIB=@RANLIB@
16 LIBS=@LIBS@
17 INSTALL=@INSTALL@
18 XML2H=@top_srcdir@/buildtools/xml2h
19 MAPFLAGS=@MAPFLAGS@
20 CTFCONVERT=@CTFCONVERT@
21 CTFMERGE=@CTFMERGE@
22
23 prefix=@prefix@
24 exec_prefix=@exec_prefix@
25 bindir=@bindir@
26 sbindir=@sbindir@
27 libdir=@libdir@
28 includedir=${prefix}/include
29 libexecdir=@libexecdir@
30 localstatedir=@localstatedir@
31 datarootdir=@datarootdir@
32 datadir=@datadir@
33 mandir=@mandir@
34 mansubdir=@mansubdir@
35 docdir=${prefix}/@docdir@
36 sysconfdir=@sysconfdir@
37 srcdir=@srcdir@
38 top_srcdir=@top_srcdir@
39 MODULES_DIR=@MODULES_DIR@
40
41 WHOLE_ARCHIVE=@WHOLE_ARCHIVE@
42 NOWHOLE_ARCHIVE=@NOWHOLE_ARCHIVE@
43
44 DTRACEOBJ=@DTRACEOBJ@
45 NOITD_DTRACEOBJ=$(DTRACEOBJ:%dtrace_stub.o=noitd_%dtrace_stub.o)
46 STRATCOND_DTRACEOBJ=$(DTRACEOBJ:%dtrace_stub.o=stratcond_%dtrace_stub.o)
47
48 TARGETS=noitd stratcond noit.conf test-noit.conf stratcon.conf test-stratcon.conf \
49         jlog/jlogctl jlog/jlogtail @MDB_MODS@
50
51 all:    reversion $(TARGETS) java-bits make-modules make-man
52
53 MODDIR=modules
54
55 HEADERS=noit_capabilities_listener.h noit_check.h noit_check_resolver.h \
56         noit_check_rest.h \
57         noit_check_tools_shared.h \
58         noit_check_tools.h noit_conf.h noit_conf_checks.h noit_conf_private.h \
59         noit_version.h \
60         noit_config.h noit_console.h noit_console_telnet.h noit_defines.h \
61         noit_filters.h noit_http.h noit_jlog_listener.h noit_listener.h \
62         noit_livestream_listener.h noit_main.h noit_module.h noit_rest.h \
63         noit_tokenizer.h noit_xml.h \
64         stratcon_datastore.h stratcon_iep.h stratcon_jlog_streamer.h \
65         stratcon_realtime_http.h \
66         eventer/OETS_asn1_helper.h eventer/eventer.h \
67         eventer/eventer_POSIX_fd_opset.h eventer/eventer_SSL_fd_opset.h \
68         eventer/eventer_jobq.h \
69         utils/noit_atomic.h utils/noit_b64.h utils/noit_hash.h \
70         utils/noit_log.h utils/noit_mkdir.h utils/noit_security.h \
71         utils/noit_sem.h utils/noit_skiplist.h utils/noit_str.h \
72         utils/noit_watchdog.h utils/noit_lockfile.h \
73         utils/noit_hooks.h \
74         noitedit/chared.h noitedit/common.h noitedit/compat.h noitedit/el.h \
75         noitedit/el_term.h noitedit/emacs.h noitedit/fcns.h noitedit/fgetln.h \
76         noitedit/help.h noitedit/hist.h noitedit/histedit.h noitedit/key.h \
77         noitedit/map.h noitedit/parse.h noitedit/prompt.h noitedit/refresh.h \
78         noitedit/search.h noitedit/sig.h noitedit/strlcpy.h noitedit/sys.h \
79         noitedit/tokenizer.h noitedit/tty.h noitedit/vi.h \
80         jlog/jlog.h jlog/jlog_config.h jlog/jlog_hash.h jlog/jlog_io.h
81
82 include Makefile.objs
83
84 NOIT_OBJS=noitd.o noit_main.o noit_listener.o \
85         noit_console.o noit_console_state.o noit_console_telnet.o \
86         noit_console_complete.o noit_check_resolver.o \
87         noit_check_tools_shared.o noit_check_log_helpers.o \
88         noit_check.o noit_check_log.o noit_check_tools.o \
89         noit_module.o noit_conf.o noit_conf_checks.o noit_tokenizer.o \
90         noit_capabilities_listener.o noit_xml.o \
91         noit_jlog_listener.o noit_livestream_listener.o noit_filters.o \
92         noit_http.o noit_rest.o noit_check_rest.o noit_filters_rest.o \
93         noit_reverse_socket.o noit_events_rest.o bundle.pb-c.o \
94         $(UDNS_LIB_OBJS) $(NOITEDIT_LIB_OBJS) $(EVENTER_LIB_OBJS) \
95         $(JLOG_LIB_OBJS) $(NOIT_UTILS_OBJS) $(JSON_LIB_OBJS) $(YAJL_LIB_OBJS) \
96         $(LUA_OBJS)
97
98 NOIT_LIBS=libudns libnoitedit libeventer libjlog libnoit_utils libnoitjson libnoityajl
99 NOIT_LIB_FILES=udns/libudns.o noitedit/libnoitedit.a eventer/libeventer.a \
100         jlog/libjlog.a utils/libnoit_utils.a json-lib/libnoitjson.a yajl-lib/libnoityajl.a
101
102 STRATCON_OBJS=stratcond.o noit_main.o noit_listener.o \
103         noit_console.o noit_console_state.o noit_console_telnet.o \
104         noit_console_complete.o noit_xml.o \
105         noit_conf.o noit_http.o noit_rest.o noit_tokenizer.o \
106         noit_capabilities_listener.o noit_module.o \
107         noit_events_rest.o noit_check_tools_shared.o noit_check_log_helpers.o \
108         noit_reverse_socket.o \
109         stratcon_realtime_http.o \
110         stratcon_jlog_streamer.o stratcon_datastore.o \
111         stratcon_iep.o \
112         bundle.pb-c.o \
113         $(UDNS_LIB_OBJS) $(NOITEDIT_LIB_OBJS) $(EVENTER_LIB_OBJS) \
114         $(JLOG_LIB_OBJS) $(NOIT_UTILS_OBJS) $(JSON_LIB_OBJS) $(YAJL_LIB_OBJS)
115
116 FINAL_STRATCON_OBJS=$(STRATCON_OBJS:%.o=stratcon-objs/%.o)
117 FINAL_NOIT_OBJS=$(NOIT_OBJS:%.o=noit-objs/%.o)
118
119 lua/src/lua:
120         (cd lua/src && $(MAKE) lua)
121
122 noit-objs/%.o:  %.o
123         @mkdir -p "`dirname $@`"
124         @echo "- making private $@"
125         @cp $(@:noit-objs/%.o=%.o) $@
126         @if test -x "$(CTFCONVERT)" ; then \
127                 echo "- making CTF ($@)" ; \
128                 $(CTFCONVERT) -g -i -l @VERSION@ $@ ; \
129         fi
130
131 stratcon-objs/%.o:      %.o
132         @mkdir -p "`dirname $@`"
133         @echo "- making private $@"
134         @cp $(@:stratcon-objs/%.o=%.o) $@
135         @if test -x "$(CTFCONVERT)" ; then \
136                 echo "- making CTF ($@)" ; \
137                 $(CTFCONVERT) -g -i -l @VERSION@ $@ ; \
138         fi
139
140 make-man:
141         @(cd man && $(MAKE) -s)
142
143 make-modules:
144         @for dir in $(MODDIR) ; do \
145                 (cd $$dir && $(MAKE) -s) ; \
146         done
147
148 java-bits:
149         @-test -n "@JAVAPARTS@" && (cd java && $(MAKE) -s)
150
151 jlog/jlogctl:
152         @echo "- building jlogctl"
153         @(cd jlog && $(MAKE) -s jlogctl)
154
155 jlog/jlogtail:
156         @echo "- building jlogtail"
157         @(cd jlog && $(MAKE) -s jlogtail)
158
159 .PHONY: reversion
160
161 reversion:
162         @$(top_srcdir)/buildtools/mkversion.sh noit_version.h
163
164 noit_version.h:
165         @$(top_srcdir)/buildtools/mkversion.sh noit_version.h
166
167 noit.env:       noit_version.h noit_config.h
168         awk '/^#define[         ]+NOIT_BRANCH/{print $$2"="$$3;}' < noit_version.h > $@
169         cat noit_version.h | tr '[".]' ' ' | awk '/^#define[    ]+NOIT_VERSION/{print $$2"=\""$$3"\""; print $$2"_TSTAMP=\""$$4"\"";}' >> $@
170         awk '/^#define[         ]+UNAME_[^V]/{print "BUILD_"$$2"="$$3;}' < noit_config.h >> $@
171
172 man/noitd.usage.h:      make-man
173
174 man/stratcond.usage.h:  make-man
175
176
177 noitd.o:        man/noitd.usage.h
178 stratcond.o:    man/stratcond.usage.h
179
180 stratcon_jlog_streamer.o:       noit_@DTRACEHDR@ stratcon_@DTRACEHDR@
181 noit_check_tools.o:     noit_@DTRACEHDR@ stratcon_@DTRACEHDR@
182 noit_check.o:   noit_@DTRACEHDR@ stratcon_@DTRACEHDR@
183 dtrace_probes.h:        noit_@DTRACEHDR@ stratcon_@DTRACEHDR@
184
185 stratcond_@DTRACEOBJ@:    $(FINAL_STRATCON_OBJS)
186         @echo "- assembling $@" && \
187         @DTRACE@ @DTRACEFLAGS@ -Z -G -s stratcon_dtrace_probes.d -o stratcond_@DTRACEOBJ@ $(FINAL_STRATCON_OBJS)
188
189 noitd_@DTRACEOBJ@:    $(FINAL_NOIT_OBJS)
190         @echo "- assembling $@" && \
191         @DTRACE@ @DTRACEFLAGS@ -Z -G -s noit_dtrace_probes.d -o noitd_@DTRACEOBJ@ $(FINAL_NOIT_OBJS)
192
193 noit_@DTRACEHDR@:    noit_dtrace_probes.d
194         @if test -z "@DTRACE@" ; then \
195                 echo "- faking dtrace header" ; \
196                 cp ./noit_@DTRACEHDR@.stock ./noit_@DTRACEHDR@ ; \
197         else \
198                 echo "- building dtrace header $@" ; \
199                 @DTRACE@ -h -s noit_dtrace_probes.d ; \
200         fi
201
202 stratcon_@DTRACEHDR@:    stratcon_dtrace_probes.d
203         @if test -z "@DTRACE@" ; then \
204                 echo "- faking dtrace header" ; \
205                 cp ./stratcon_@DTRACEHDR@.stock ./stratcon_@DTRACEHDR@ ; \
206         else \
207                 echo "- building dtrace header $@" ; \
208                 @DTRACE@ -h -s stratcon_dtrace_probes.d ; \
209         fi
210
211 noitd:  $(FINAL_NOIT_OBJS) man/noitd.usage.h $(NOITD_DTRACEOBJ)
212         @echo "- linking $@"
213         @$(CC) $(CLINKFLAGS) -o $@ $(FINAL_NOIT_OBJS) \
214                 $(NOITD_DTRACEOBJ) \
215                 $(LDFLAGS) \
216                 $(MAPFLAGS) \
217                 $(LIBS)
218         @if test -x "$(CTFMERGE)" ; then \
219                 $(CTFMERGE) -g -l @VERSION@ -o $@ $(FINAL_NOIT_OBJS) $(NOITD_DTRACEOBJ) ; \
220         fi
221
222 stratcond:      $(FINAL_STRATCON_OBJS) $(STRATCOND_DTRACEOBJ)
223         @echo "- linking $@"
224         @$(CC) $(CLINKFLAGS) -o $@ $(FINAL_STRATCON_OBJS) \
225                 $(STRATCOND_DTRACEOBJ) \
226                 $(LDFLAGS) \
227                 $(MAPFLAGS) \
228                 $(LIBS)
229         @if test -x "$(CTFMERGE)" ; then \
230                 $(CTFMERGE) -g -l @VERSION@ -o $@ $(FINAL_STRATCON_OBJS) $(STRATCOND_DTRACEOBJ) ; \
231         fi
232
233 mdb-support/mdb_help.lo:        mdb-support/mdb_help.c
234         @echo "- compiling $@"
235         @$(CC) -Imdb-support $(CPPFLAGS) $(SHCFLAGS) $(CFLAGS) -o $@ -c $<
236
237 SHAREDMDBMODSRC=mdb-support/noitutils.c mdb-support/eventer.c
238
239 mdb-support/noitd.lo:   mdb-support/noitd.c $(SHAREDMDBMODSRC)
240         @echo "- compiling $@"
241         @$(CC) -Imdb-support $(CPPFLAGS) $(SHCFLAGS) $(CFLAGS) -o $@ -c $<
242
243 mdb-support/noitd.so:   mdb-support/noitd.lo mdb-support/mdb_help.lo
244         @echo "- linking $@"
245         @$(MODULELD) $(SHLDFLAGS) -o $@ mdb-support/noitd.lo mdb-support/mdb_help.lo
246
247 mdb-support/stratcond.lo:       mdb-support/stratcond.c $(SHAREDMDBMODSRC)
248         @echo "- compiling $@"
249         @$(CC) -Imdb-support $(CPPFLAGS) $(SHCFLAGS) $(CFLAGS) -o $@ -c $<
250
251 mdb-support/stratcond.so:       mdb-support/stratcond.lo mdb-support/mdb_help.lo
252         @echo "- linking $@"
253         @$(MODULELD) $(SHLDFLAGS) -o $@ mdb-support/stratcond.lo mdb-support/mdb_help.lo
254
255 stratcon_datastore.o:   stratcon_datastore.c
256         @echo "- compiling $<"
257         @$(CC) $(CPPFLAGS) $(PGCFLAGS) $(CFLAGS) -c $<
258
259 .c.o:
260         @if [ "`dirname $@`" != "." ] ; then \
261                 (cd "`dirname $@`" && $(MAKE) "`basename $@`") ; \
262         else \
263                 echo "- compiling $<" ; \
264                 $(CC) $(CPPFLAGS) $(CFLAGS) -c $< ; \
265         fi
266
267 udns/udns_codes.c:
268         @(cd udns && $(MAKE) udns_codes.c)
269
270 utils/noit_atomic_sol_sparcv8plus.o:    utils/noit_atomic_sol.s
271         @(cd utils && $(MAKE) noit_atomic_sol_sparcv8plus.o)
272
273 utils/noit_atomic_sol_sparcv9.o:        utils/noit_atomic_sol.s
274         @(cd utils && $(MAKE) noit_atomic_sol_sparcv9.o)
275
276 utils/noit_atomic_sol_x86_32.o: utils/noit_atomic_sol.s
277         @(cd utils && $(MAKE) noit_atomic_sol_x86_32.o)
278
279 utils/noit_atomic_sol_x86_64.o: utils/noit_atomic_sol.s
280         @(cd utils && $(MAKE) noit_atomic_sol_x86_64.o)
281
282 noit_module.o:  module-online.h
283
284 module-online.h:        modules/module-online.xsl
285         @echo "- making module-online.h (StyleSheet include)"
286         @$(XML2H) helpStyleXML < modules/module-online.xsl > $@
287
288 noit_tokenizer.c:
289         @echo "- re2c noit_tokenizer.re"
290         @re2c -o $@ noit_tokenizer.re
291
292 test-noit.conf: noit.conf.in Makefile
293         @mkdir -p scratch/var/log scratch/var/run
294         @sed -e "s^%sysconfdir%^`pwd`^g;" \
295                 -e "s^%modulesdir%^`pwd`/modules^g;" \
296                 -e "s^%modulesluadir%^`pwd`/modules-lua^g;" \
297                 -e "s^%datarootdir%^`pwd`^g;" \
298                 -e "s^%PKIPREFIX%^../test/test-^g;" \
299                 -e "s^/var/^`pwd`/scratch/var/^g;" < \
300                 noit.conf.in > \
301                 test-noit.conf
302
303 noit.conf:      noit.conf.in Makefile
304         @sed -e "s^%sysconfdir%^$(sysconfdir)^g;" \
305                 -e "s^%modulesdir%^$(MODULES_DIR)^g;" \
306                 -e "s^%modulesluadir%^$(MODULES_DIR)^g;" \
307                 -e "s^%datarootdir%^$(datadir)^g;" \
308                 -e "s^%PKIPREFIX%^$${PKIPREFIX}^g;" < \
309                 noit.conf.in > \
310                 noit.conf
311
312 test-stratcon.conf:     stratcon.conf.in Makefile
313         @sed -e "s^%sysconfdir%^`pwd`^g;" \
314                 -e "s^%modulesdir%^`pwd`/modules^g;" \
315                 -e "s^%modulesluadir%^`pwd`/modules-lua^g;" \
316                 -e "s^%iepbindir%^`pwd`/java^g;" \
317                 -e "s^%iepdbdir%^`pwd`/java^g;" \
318                 -e "s^%PKIPREFIX%^../test/test-^g;" < \
319                 stratcon.conf.in > \
320                 test-stratcon.conf
321
322 stratcon.conf:  stratcon.conf.in Makefile
323         @sed -e "s^%sysconfdir%^$(sysconfdir)^g;" \
324                 -e "s^%modulesdir%^$(MODULES_DIR)^g;" \
325                 -e "s^%modulesluadir%^$(MODULES_DIR)^g;" \
326                 -e "s^%iepbindir%^$(bindir)^g;" \
327                 -e "s^%iepdbdir%^$(localstatedir)/db/noit-iep^g;" \
328                 -e "s^%PKIPREFIX%^$${PKIPREFIX}^g;" < \
329                 stratcon.conf.in > \
330                 stratcon.conf
331
332 install-dirs:
333         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(bindir)
334         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(sbindir)
335         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(sysconfdir)
336         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(datadir)/noit-web
337         if test -n "@MDB_MODS@" ; then \
338                 $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)/usr/lib/mdb/proc/amd64 ; \
339         fi
340
341 install-headers:        $(HEADERS)
342         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(bindir)
343         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(includedir)
344         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(includedir)/eventer
345         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(includedir)/utils
346         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(includedir)/noitedit
347         $(top_srcdir)/buildtools/mkinstalldirs $(DESTDIR)$(includedir)/jlog
348         $(INSTALL) -m 0755 ../buildtools/xml2h $(DESTDIR)$(bindir)/noit-xml2h
349         $(INSTALL) -m 0755 scripts/noit-config $(DESTDIR)$(bindir)/noit-config
350         for file in $(HEADERS) ; do \
351                 $(INSTALL) -m 0644 $$file $(DESTDIR)$(includedir)/$$file ; \
352         done
353
354 install-noitd:  install-dirs reversion noitd noit.conf java-bits jlog/jlogctl jlog/jlogtail noit.env
355         $(INSTALL) -m 0755 scripts/noittrap $(DESTDIR)$(bindir)/noittrap
356         $(INSTALL) -m 0755 jlog/jlogctl $(DESTDIR)$(bindir)/noit_jlogctl
357         $(INSTALL) -m 0755 jlog/jlogtail $(DESTDIR)$(bindir)/noit_jlogtail
358         $(INSTALL) -m 0755 noitd $(DESTDIR)$(sbindir)/noitd
359         $(INSTALL) -m 0644 noit.conf $(DESTDIR)$(sysconfdir)/noit.conf.sample
360         $(INSTALL) -m 0644 noit.env $(DESTDIR)$(sysconfdir)/noit.env
361         $(INSTALL) -m 0644 config_templates.conf $(DESTDIR)$(sysconfdir)/config_templates.conf
362         $(INSTALL) -m 0644 default-ca-chain.crt $(DESTDIR)$(sysconfdir)/default-ca-chain.crt
363         (cd modules && $(MAKE) install-modules DESTDIR=$(DESTDIR))
364         (cd modules-lua && $(MAKE) install DESTDIR=$(DESTDIR))
365         (cd noit-web && tar cf - .) | (cd $(DESTDIR)$(datadir)/noit-web && tar xf -)
366         -test -n "@JAVAPARTS@" && (cd @JAVAPARTS@ && $(MAKE) install-jezebel DESTDIR=$(DESTDIR))
367         if test -n "@MDB_MODS@" ; then \
368                 $(INSTALL) -m 0755 mdb-support/noitd.so $(DESTDIR)/usr/lib/mdb/proc/amd64/noitd.so ; \
369         fi
370
371 install-stratcond:      install-dirs reversion stratcond stratcon.conf java-bits noit.env
372         $(INSTALL) -m 0755 stratcond $(DESTDIR)$(sbindir)/stratcond
373         $(INSTALL) -m 0644 stratcon.conf $(DESTDIR)$(sysconfdir)/stratcon.conf.sample
374         $(INSTALL) -m 0644 noit.env $(DESTDIR)$(sysconfdir)/stratcon.env
375         (cd modules && $(MAKE) install-smodules DESTDIR=$(DESTDIR))
376         -test -n "@JAVAPARTS@" && (cd @JAVAPARTS@ && $(MAKE) install-iep DESTDIR=$(DESTDIR))
377         if test -n "@MDB_MODS@" ; then \
378                 $(INSTALL) -m 0755 mdb-support/stratcond.so $(DESTDIR)/usr/lib/mdb/proc/amd64/stratcond.so ; \
379         fi
380
381 install-docs:
382         (cd man && $(MAKE) install DESTDIR=$(DESTDIR))
383
384 install:        install-dirs install-docs install-headers install-noitd install-stratcond
385
386 clean:
387         rm -f *.o $(TARGETS) $(LUA_OBJS)
388         rm -f module-online.h noit.env
389         rm -rf noit-objs stratcon-objs
390         rm -rf mdb-support/*.lo mdb-support/*.so
391         (cd jlog && $(MAKE) clean)
392         (cd eventer && $(MAKE) clean)
393         (cd udns && $(MAKE) clean)
394         (cd man && $(MAKE) clean)
395         (cd modules && $(MAKE) clean)
396         (cd noitedit && $(MAKE) clean)
397         (cd utils && $(MAKE) clean)
398         (cd json-lib && $(MAKE) clean)
399         (cd yajl-lib && $(MAKE) clean)
400         (cd java && $(MAKE) clean)
401         (cd LuaJIT && $(MAKE) clean)
402         (cd lua/src && $(MAKE) clean)
403
404 Makefile.noit.dep:
405         find noit-objs -name \*.o | grep -v 'eventer_.*_impl.o' | sort | awk '{gsub("^.+-objs/", ""); print "noit-objs/"$$1": "$$1;}' > $@
406         for impl in kqueue ports epoll; do \
407                 echo "noit-objs/eventer/eventer_$${impl}_impl.o: eventer/eventer_$${impl}_impl.o" >> $@ ; \
408         done
409
410 Makefile.stratcon.dep:
411         find stratcon-objs -name \*.o | grep -v 'eventer_.*_impl.o' | sort | awk '{gsub("^.+-objs/", ""); print "stratcon-objs/"$$1": "$$1;}' > $@
412         for impl in kqueue ports epoll; do \
413                 echo "stratcon-objs/eventer/eventer_$${impl}_impl.o: eventer/eventer_$${impl}_impl.o" >> $@ ; \
414         done
415
416 Makefile.dep:
417         $(CC) -I. $(CPPFLAGS) $(CFLAGS) $(DEPFLAGS) *.c > Makefile.dep
418         for d in utils jlog udns eventer noitedit json-lib yajl-lib; do \
419                 $(CC) -I. $(CPPFLAGS) $(CFLAGS) $(DEPFLAGS) $$d/*.c | \
420                 perl -pe 's#(\s)([^\s\\])#$$1$$2#g; s#^(\S)#'$$d'/$$1#;' >> \
421                 Makefile.dep ; \
422         done
423         $(top_srcdir)/buildtools/culldeps.sh Makefile.dep
424
425 include Makefile.dep
426 include Makefile.noit.dep
427 include Makefile.stratcon.dep
428
429 distclean-subdirs:
430         for dir in jlog eventer udns man modules modules-lua noitedit utils json-lib yajl-lib LuaJIT lua/src java ; do \
431                 (cd $$dir && $(MAKE) distclean) ; \
432         done
433
434 distclean:      clean distclean-subdirs
435         rm -f Makefile noit_config.h scripts/noit-config
436
437 js/bundle.desc: bundle.proto
438         protoc -ojs/bundle.desc bundle.proto
439
440 bundle:
441         protoc bundle.proto --java_out=java
442         protoc-c bundle.proto --c_out=.
Note: See TracBrowser for help on using the browser.