root/src/Makefile.in

Revision 0268e62cb80791dd94220cf6deec916656c7cddd, 0.9 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 7 years ago)

update.. prep for config system and module loading

  • 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
26
27 OBJS=noitd.o noit_listener.o noit_console.o noit_poller.o \
28         noit_module.o noit_conf.o
29
30 all:    noitd
31
32 make-subdirs:
33         for dir in $(SUBS) ; do \
34                 (cd $$dir && make) ; \
35         done
36
37 noitd:  make-subdirs $(OBJS)
38         $(CC) -o $@ $(OBJS) \
39                 $(LDFLAGS) \
40                 -Leventer -leventer \
41                 -Lutils -lnoit_utils \
42                 -Ljlog -ljlog \
43                 $(LIBS)
44
45 .c.o:
46         $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
47
48 clean-subdirs:
49         for dir in $(SUBS) ; do \
50                 (cd $$dir && make clean) ; \
51         done
52
53 clean:  clean-subdirs
54         rm -f *.o noitd
55
Note: See TracBrowser for help on using the browser.