root/trunk/Makefile.in

Revision 41, 1.4 kB (checked in by jesus, 9 years ago)

autoconf support

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1 prefix=@prefix@
2 exec_prefix=@exec_prefix@
3 bindir=@bindir@
4 sbindir=@sbindir@
5 libdir=@libdir@
6 libexecdir=@libexecdir@
7 mandir=@mandir@
8 mansubdir=@mansubdir@
9 sysconfdir=@sysconfdir@
10 piddir=@piddir@
11 srcdir=@srcdir@
12 top_srcdir=@top_srcdir@
13
14 DESTDIR=
15 PERL=@PERL@
16 YACC=@YACC@
17 LEX=@LEX@
18 AR=@AR@
19 RANLIB=@RANLIB@
20 LN_S=@LN_S@
21
22 CC=@CC@
23 CPPFLAGS=@CPPFLAGS@ -DPERL
24 CFLAGS=@CFLAGS@ `$(PERL) -MExtUtils::Embed -e ccopts`
25 LDFLAGS=@LDFLAGS@ `$(PERL) -MExtUtils::Embed -e ldopts`
26 LIBS=@LIBS@
27
28 PERL_OBJS=perl.o perlxsi.o
29 OBJS=spreadlogd.o lex.sld_.o y.tab.o config.o hash.o timefuncs.o \
30         module.o nethelp.o skiplist.o echash.o $(PERL_OBJS)
31
32 all:    spreadlogd
33
34 parser: lex.sld_.c y.tab.c y.tab.h
35
36 lex.sld_.c:     config_gram.l
37         $(LEX) -Psld_ config_gram.l
38 y.tab.c y.tab.h:        config_gram.y
39         $(YACC) -p sld_ -d config_gram.y
40 lex.sld_.o: lex.sld_.c y.tab.h
41 y.tab.o: y.tab.c config.h
42
43 perlxsi.c:
44         $(PERL) -MExtUtils::Embed -e xsinit -- -o perlxsi.c
45
46 .c.o:
47         $(CC) $(CPPFLAGS) $(CFLAGS) $(INCLUDES) -c $<
48
49 spreadlogd:     $(OBJS)
50         $(CC) -g -o $@ $(OBJS) $(LDFLAGS) $(LIBS)
51
52 install:        spreadlogd
53         $(srcdir)/mkinstalldirs $(DESTDIR)$(sbindir)
54         $(INSTALL) -m 0755 spreadlogd $(DESTDIR)$(sbindir)/spreadlogd
55         $(srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir)
56         $(INSTALL) -m 0755 spreadlogd.conf $(DESTDIR)$(sysconfdir)/spreadlogd.conf.sample
57
58 clean:
59         rm -f *~ *.o spreadlogd libskiplist.a y.tab.h y.tab.c lex.sld_.c \
60                 perlxsi.c
Note: See TracBrowser for help on using the browser.