root/src/Makefile.in

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

cleanup some makefiles and code -- make it easier to see warnings

  • 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 PGLIBS=@PGLIBS@
9 INSTALL=@INSTALL@
10
11 prefix=@prefix@
12 exec_prefix=@exec_prefix@
13 bindir=@bindir@
14 sbindir=@sbindir@
15 libdir=@libdir@
16 includedir=${prefix}/include
17 libexecdir=@libexecdir@
18 datarootdir = @datarootdir@
19 mandir=@mandir@
20 mansubdir=@mansubdir@
21 docdir=${prefix}/@docdir@
22 sysconfdir=@sysconfdir@
23 srcdir=@srcdir@
24 top_srcdir=@top_srcdir@
25
26 SUBS=utils jlog eventer modules noitedit
27
28 NOIT_OBJS=noitd.o noit_listener.o \
29         noit_console.o noit_console_state.o noit_console_telnet.o \
30         noit_check.o noit_check_log.o noit_check_tools.o \
31         noit_module.o noit_conf.o noit_conf_checks.o noit_tokenizer.o \
32         noit_jlog_listener.o
33
34 STRATCON_OBJS=stratcond.o noit_listener.o \
35         noit_console.o noit_console_state.o noit_console_telnet.o \
36         noit_conf.o noit_tokenizer.o \
37         stratcon_jlog_streamer.o stratcon_datastore.o
38
39 all:    noitd stratcond
40
41 make-subdirs:   serf/.libs/libserf-0.a
42         for dir in $(SUBS) ; do \
43                 (cd $$dir && make) ; \
44         done
45
46 serf/.libs/libserf-0.a:
47         (cd serf && python serfmake)
48
49 noitd:  make-subdirs $(NOIT_OBJS)
50         @$(CC) -o $@ $(NOIT_OBJS) \
51                 $(LDFLAGS) \
52                 -Leventer -leventer \
53                 -Lutils -lnoit_utils \
54                 -Ljlog -ljlog \
55                 -Lnoitedit -lnoitedit \
56                 $(LIBS)
57         @echo "- linking $@"
58
59 stratcond:      make-subdirs $(STRATCON_OBJS)
60         @$(CC) -o $@ $(STRATCON_OBJS) \
61                 $(LDFLAGS) \
62                 -Leventer -leventer \
63                 -Lutils -lnoit_utils \
64                 -Ljlog -ljlog \
65                 -Lnoitedit -lnoitedit \
66                 $(LIBS) $(PGLIBS)
67         @echo "- linking $@"
68
69 .c.o:
70         @$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
71         @echo "- compiling $<"
72
73 noit_tokenizer.c:       noit_tokenizer.re
74         @re2c -o $@ noit_tokenizer.re
75         @echo "- re2c $<"
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
84
Note: See TracBrowser for help on using the browser.