root/src/Makefile.in

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

I sure hope this doesn't break other platforms too badly. Solaris support sans the eventer... untested, of course. refs #32.

  • Property mode set to 100644
Line 
1 CC=@CC@
2 CPPFLAGS=@CPPFLAGS@
3 CFLAGS=@CFLAGS@
4 PGCFLAGS=@PGCFLAGS@
5 LDFLAGS=@LDFLAGS@
6 AR=@AR@
7 RANLIB=@RANLIB@
8 LIBS=@LIBS@
9 PGLIBS=@PGLIBS@
10 INSTALL=@INSTALL@
11
12 prefix=@prefix@
13 exec_prefix=@exec_prefix@
14 bindir=@bindir@
15 sbindir=@sbindir@
16 libdir=@libdir@
17 includedir=${prefix}/include
18 libexecdir=@libexecdir@
19 datarootdir = @datarootdir@
20 mandir=@mandir@
21 mansubdir=@mansubdir@
22 docdir=${prefix}/@docdir@
23 sysconfdir=@sysconfdir@
24 srcdir=@srcdir@
25 top_srcdir=@top_srcdir@
26
27 WHOLE_ARCHIVE=@WHOLE_ARCHIVE@
28 NOWHOLE_ARCHIVE=@NOWHOLE_ARCHIVE@
29
30 SUBS=lua utils eventer modules noitedit
31
32 NOIT_OBJS=noitd.o noit_listener.o \
33         noit_console.o noit_console_state.o noit_console_telnet.o \
34         noit_check.o noit_check_log.o noit_check_tools.o \
35         noit_module.o noit_conf.o noit_conf_checks.o noit_tokenizer.o \
36         noit_jlog_listener.o noit_filters.o
37
38 STRATCON_OBJS=stratcond.o noit_listener.o \
39         noit_console.o noit_console_state.o noit_console_telnet.o \
40         noit_conf.o noit_tokenizer.o \
41         stratcon_jlog_streamer.o stratcon_datastore.o
42
43 all:    noitd stratcond
44
45 make-subdirs:   serf/.libs/libserf-0.o jlog/libjlog.a
46         for dir in $(SUBS) ; do \
47                 (cd $$dir && make) ; \
48         done
49
50 jlog/libjlog.a:
51         (cd jlog && make libjlog.a)
52
53 serf/.libs/libserf-0.a:
54         (cd serf && \
55                 env \
56                 CFLAGS="$(CFLAGS)" \
57                 LDFLAGS="$(LDFLAGS)" \
58                 python serfmake --with-apr=@APRPREFIX@)
59
60 serf/.libs/libserf-0.o: serf/.libs/libserf-0.a
61         ld -r -o serf/.libs/libserf-0.o \
62                 serf/.libs/context.o serf/buckets/.libs/*.o
63
64 noitd:  make-subdirs $(NOIT_OBJS)
65         @$(CC) -o $@ $(NOIT_OBJS) \
66                 $(LDFLAGS) \
67                 $(WHOLE_ARCHIVE) \
68                 -Leventer -leventer \
69                 -Lutils -lnoit_utils \
70                 -Ljlog -ljlog \
71                 -Lnoitedit -lnoitedit \
72                 $(NOWHOLE_ARCHIVE) \
73                 $(LIBS)
74         @echo "- linking $@"
75
76 stratcond:      make-subdirs $(STRATCON_OBJS)
77         @$(CC) -o $@ $(STRATCON_OBJS) \
78                 $(LDFLAGS) \
79                 $(WHOLE_ARCHIVE) \
80                 -Leventer -leventer \
81                 -Lutils -lnoit_utils \
82                 -Ljlog -ljlog \
83                 -Lnoitedit -lnoitedit \
84                 $(NOWHOLE_ARCHIVE) \
85                 $(LIBS) $(PGLIBS)
86         @echo "- linking $@"
87
88 stratcon_datastore.o:
89         @$(CC) $(CPPFLAGS) $(PGCFLAGS) -c $<
90         @echo "- compiling $<"
91
92 .c.o:
93         @$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
94         @echo "- compiling $<"
95
96 noit_tokenizer.c:       noit_tokenizer.re
97         @re2c -o $@ noit_tokenizer.re
98         @echo "- re2c $<"
99
100 clean-subdirs:
101         for dir in $(SUBS) ; do \
102                 (cd $$dir && make clean) ; \
103         done
104
105 clean:  clean-subdirs
106         rm -f *.o noitd
107
Note: See TracBrowser for help on using the browser.