root/src/Makefile.in

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

start the framework for a console state machine

  • 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 noitedit
26
27 OBJS=noitd.o noit_listener.o \
28         noit_console.o noit_console_state.o noit_console_telnet.o \
29         noit_check.o \
30         noit_module.o noit_conf.o noit_tokenizer.o
31
32 all:    noitd
33
34 make-subdirs:   serf/.libs/libserf-0.a
35         for dir in $(SUBS) ; do \
36                 (cd $$dir && make) ; \
37         done
38
39 serf/.libs/libserf-0.a:
40         (cd serf && python serfmake)
41
42 noitd:  make-subdirs $(OBJS)
43         $(CC) -o $@ $(OBJS) \
44                 $(LDFLAGS) \
45                 -Leventer -leventer \
46                 -Lutils -lnoit_utils \
47                 -Ljlog -ljlog \
48                 -Lnoitedit -lnoitedit \
49                 $(LIBS)
50
51 .c.o:
52         $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
53
54 noit_tokenizer.c:       noit_tokenizer.re
55         re2c -o $@ noit_tokenizer.re
56
57 clean-subdirs:
58         for dir in $(SUBS) ; do \
59                 (cd $$dir && make clean) ; \
60         done
61
62 clean:  clean-subdirs
63         rm -f *.o noitd
64
Note: See TracBrowser for help on using the browser.