-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.in
156 lines (122 loc) · 3.95 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
.SUFFIXES: .lo
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
sbindir=@sbindir@
libdir=@libdir@
mandir=@mandir@
mansubdir=@mansubdir@
sysconfdir=@sysconfdir@
piddir=@piddir@
srcdir=@srcdir@
top_srcdir=@top_srcdir@
DESTDIR=
VPATH=@srcdir@
WACKAMOLE_PROGRAM=@sbindir@/wackamole
PATHS= -DETCDIR=\"$(sysconfdir)\" \
-D_PATH_WACKAMOLE_PIDDIR=\"$(piddir)\" \
-DBUNDLEEXT=\"$(BUNDLEEXT)\"
CC=@CC@
CFLAGS=@CFLAGS@
LEX=@LEX@
YACC=@YACC@
CPPFLAGS=-I. -I$(srcdir) @CPPFLAGS@ $(PATHS) @DEFS@
LD=@LD@
LDFLAGS=@LDFLAGS@
LIBS=@LIBS@
AR=@AR@
SHCC=@SHCC@
SHLD=@SHLD@
SHCFLAGS=@SHCFLAGS@
SHCPPFLAGS=@SHCPPFLAGS@
SHLDFLAGS=@SHLDFLAGS@
SHLIBS=@SHLIBS@
BUNDLEEXT=@BUNDLEEXT@
RANLIB=@RANLIB@
INSTALL=@INSTALL@
SOFTLINK=@LN_S@
PERL=@PERL@
ENT=@ENT@
TARGETS=wackamole wackatrl t/arptest
WACKOBJS=wackamole.o alarm.o lex.wack.o y.tab.o arpcache.o spoofmanager.o \
abt.o control.o apue.o configuration.o userloader.o @IFE_OBJ@ \
ife-icmp-support.o @PERLOBJS@
WACKATRLOBJS=wackatrl.o alarm.o lex.wack.o y.tab.o apue.o \
configuration.o userloader.o @PERLOBJS@
PATHSUBS = \
-D/etc/wackamole.conf=$(sysconfdir)/wackamole.conf \
-D/var/run/wackamole.pid=$(piddir)/wackamole.pid
FIXPATHSCMD = $(PERL) $(srcdir)/fixpaths $(PATHSUBS)
all: $(CONFIGFILES) $(TARGETS)
parser: lex.wack.c y.tab.c y.tab.h
$(WACKOBJS): config.h
$(WACKATRLOBJS): config.h
.c.o: defines.h config.h
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
.c.lo: defines.h config.h
$(SHCC) $(SHCFLAGS) $(SHCPPFLAGS) -c $< -o $*.lo
lex.wack.c: config_gram.l
$(LEX) -Pwack config_gram.l
y.tab.c y.tab.h: config_gram.y
$(YACC) -p wack -d config_gram.y
lex.wack.o: lex.wack.c y.tab.h
$(CC) $(CFLAGS) $(CPPFLAGS) -c lex.wack.c
y.tab.o: y.tab.c config.h
$(CC) $(CFLAGS) $(CPPFLAGS) -c y.tab.c
perlxsi.c:
$(PERL) -MExtUtils::Embed -e xsinit -- -o perlxsi.c
none:
echo "Skipping shared library creation."
install-none:
echo "Skipping shared library installation."
wackamole: $(WACKOBJS)
$(LD) -o $@ $(WACKOBJS) $(LDFLAGS) $(LIBS)
wackatrl: $(WACKATRLOBJS)
$(LD) -o $@ $(WACKATRLOBJS) $(LDFLAGS) $(LIBS)
ife: ife.o ife-icmp-support.o arpcache.o abt.o alarm.o @IFE_OBJ@
$(LD) -o $@ ife.o ife-icmp-support.o arpcache.o abt.o alarm.o @IFE_OBJ@ $(LDFLAGS) $(LIBS)
arptest.o: t/arptest.c
$(CC) $(CFLAGS) $(CPPFLAGS) -c t/arptest.c
t/arptest: arptest.o alarm.o arpcache.o abt.o
$(LD) -o $@ arptest.o alarm.o arpcache.o abt.o $(LDFLAGS) $(LIBS)
clean:
rm -f *.lo *.tlo *.to *.o *.a $(TARGETS) *.so ife
rm -f config.cache config.log *.out core *~
distclean: clean parserclean
rm -f Makefile config.h config.status *~
parserclean:
rm -f lex.wack.c y.tab.c y.tab.h
mrproper: distclean
veryclean: distclean
rm -f configure config.h.in *.0
distprep:
autoreconf
install: $(TARGETS) install-files
install-files:
$(srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
$(srcdir)/mkinstalldirs $(DESTDIR)$(sbindir)
$(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)
$(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)5
$(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)8
$(srcdir)/mkinstalldirs $(DESTDIR)$(libdir)
$(INSTALL) -m 0755 -s wackamole $(DESTDIR)$(sbindir)/wackamole
$(INSTALL) -m 0755 -s wackatrl $(DESTDIR)$(sbindir)/wackatrl
$(INSTALL) -m 0644 wackamole.8 $(DESTDIR)$(mandir)/$(mansubdir)8/wackamole.8
$(INSTALL) -m 0644 wackatrl.8 $(DESTDIR)$(mandir)/$(mansubdir)8/wackatrl.8
$(INSTALL) -m 0644 wackamole.conf.5 $(DESTDIR)$(mandir)/$(mansubdir)5/wackamole.conf.5
if [ ! -d $(DESTDIR)$(sysconfdir) ]; then \
$(srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir); \
fi
$(INSTALL) -m 644 wackamole.conf $(DESTDIR)$(sysconfdir)/wackamole.conf.sample
uninstallall: uninstall
-rm -f $(DESTDIR)$(sysconfdir)/wackamole.conf.sample
-rmdir $(DESTDIR)$(sysconfdir)
-rmdir $(DESTDIR)$(bindir)
-rmdir $(DESTDIR)$(sbindir)
-rmdir $(DESTDIR)$(mandir)/$(mansubdir)8
-rmdir $(DESTDIR)$(mandir)/$(mansubdir)8
-rmdir $(DESTDIR)$(mandir)
-rmdir $(DESTDIR)$(libdir)
uninstall:
-rm -f $(DESTDIR)$(sbindir)/wackamole
-rm -f $(DESTDIR)$(sbindir)/wackatrl