-
Notifications
You must be signed in to change notification settings - Fork 230
/
Makefile.am
52 lines (41 loc) · 1.75 KB
/
Makefile.am
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
sbin_PROGRAMS = fwknopd
fwknopd_SOURCES = fwknopd.c fwknopd.h config_init.c config_init.h \
fwknopd_common.h incoming_spa.c incoming_spa.h \
pcap_capture.c pcap_capture.h process_packet.c \
process_packet.h log_msg.c log_msg.h utils.c utils.h \
sig_handler.c sig_handler.h replay_cache.c replay_cache.h \
access.c access.h fwknopd_errors.c fwknopd_errors.h \
tcp_server.c tcp_server.h udp_server.c udp_server.h \
fw_util.c fw_util.h fw_util_ipf.c fw_util_ipf.h \
fw_util_firewalld.c fw_util_firewalld.h \
fw_util_iptables.c fw_util_iptables.h \
fw_util_ipfw.c fw_util_ipfw.h \
fw_util_pf.c fw_util_pf.h cmd_opts.h \
extcmd.c extcmd.h
fwknopd_LDADD = $(top_builddir)/lib/libfko.la $(top_builddir)/common/libfko_util.a
if !UDP_SERVER
fwknopd_LDADD += -lpcap
endif
if !CONFIG_FILE_CACHE
if USE_NDBM
fwknopd_LDADD += -lndbm
else
fwknopd_LDADD += -lgdbm
endif
endif
fwknopd_CPPFLAGS = -I $(top_srcdir)/lib -I $(top_srcdir)/common -DSYSCONFDIR=\"$(sysconfdir)\" -DSYSRUNDIR=\"$(localstatedir)\"
fwknopddir = @sysconfdir@/fwknop
dist_man_MANS = fwknopd.8
dist_fwknopd_DATA = fwknopd.conf.inst access.conf.inst
EXTRA_DIST = fwknopd.8.in
fwknopd.8: $(top_srcdir)/server/fwknopd.8.in
$(SED) \
-e 's|[@]prefix@|$(prefix)|g' \
-e 's|[@]sysconfdir@|$(sysconfdir)|g' \
-e 's|[@]datarootdir@|$(datarootdir)|g' \
-e 's|[@]bindir@|$(bindir)|g' \
-e 's|[@]sbindir@|$(sbindir)|g' \
-e 's|[@]localstatedir@|$(localstatedir)|g' \
< $(top_srcdir)/server/fwknopd.8.in > "$@"
clean-local:
rm -f fwknopd.8