-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.in
executable file
·61 lines (50 loc) · 1.37 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
sbindir=@sbindir@
libdir=@libdir@
libexecdir=@libexecdir@
mandir=@mandir@
mansubdir=@mansubdir@
sysconfdir=@sysconfdir@
piddir=@piddir@
srcdir=@srcdir@
top_srcdir=@top_srcdir@
DESTDIR=
PERL=@PERL@
YACC=@YACC@
LEX=@LEX@
AR=@AR@
RANLIB=@RANLIB@
LN_S=@LN_S@
INSTALL=@INSTALL@
CC=@CC@
CPPFLAGS=@CPPFLAGS@ -DPERL
CFLAGS=@CFLAGS@ `$(PERL) -MExtUtils::Embed -e ccopts`
LDFLAGS=@LDFLAGS@ `$(PERL) -MExtUtils::Embed -e ldopts`
LIBS=@LIBS@
PERL_OBJS=perl.o perlxsi.o
OBJS=spreadlogd.o lex.sld_.o y.tab.o config.o hash.o timefuncs.o \
module.o nethelp.o skiplist.o echash.o $(PERL_OBJS)
all: spreadlogd
parser: lex.sld_.c y.tab.c y.tab.h
lex.sld_.c: config_gram.l
$(LEX) -Psld_ config_gram.l
y.tab.c y.tab.h: config_gram.y
$(YACC) -p sld_ -d config_gram.y
lex.sld_.o: lex.sld_.c y.tab.h
y.tab.o: y.tab.c config.h
perlxsi.c:
$(PERL) -MExtUtils::Embed -e xsinit -- -o perlxsi.c
.c.o:
$(CC) $(CPPFLAGS) $(CFLAGS) $(INCLUDES) -c $<
spreadlogd: $(OBJS)
$(CC) -g -o $@ $(OBJS) $(LDFLAGS) $(LIBS)
install: spreadlogd
$(srcdir)/mkinstalldirs $(DESTDIR)$(sbindir)
$(INSTALL) -m 0755 spreadlogd $(DESTDIR)$(sbindir)/spreadlogd
$(srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir)
$(INSTALL) -m 0755 spreadlogd.conf $(DESTDIR)$(sysconfdir)/spreadlogd.conf.sample
clean:
rm -f *~ *.o spreadlogd libskiplist.a y.tab.h y.tab.c lex.sld_.c \
perlxsi.c