e04e296467b5b685ed3123ea6f0c535fc40c2771
[fwknop.git] / server / Makefile.am
1 sbin_PROGRAMS    = fwknopd
2
3 fwknopd_SOURCES   = fwknopd.c fwknopd.h config_init.c config_init.h \
4                     fwknopd_common.h incoming_spa.c incoming_spa.h \
5                     pcap_capture.c pcap_capture.h process_packet.c \
6                     process_packet.h log_msg.c log_msg.h utils.c utils.h \
7                     sig_handler.c sig_handler.h replay_cache.c replay_cache.h \
8                     access.c access.h fwknopd_errors.c fwknopd_errors.h \
9                     tcp_server.c tcp_server.h extcmd.c extcmd.h \
10                     fw_util.c fw_util.h fw_util_ipf.c fw_util_ipf.h \
11                     fw_util_iptables.c fw_util_iptables.h \
12                     fw_util_ipfw.c fw_util_ipfw.h \
13                     fw_util_pf.c fw_util_pf.h cmd_opts.h
14
15 fwknopd_LDADD     = $(top_builddir)/lib/libfko.la -lpcap
16
17 if ! CONFIG_FILE_CACHE
18 if USE_NDBM
19     fwknopd_LDADD += -lndbm
20 else
21     fwknopd_LDADD += -lgdbm
22 endif
23 endif
24
25 fwknopd_CPPFLAGS  = -I $(top_srcdir)/lib -I $(top_srcdir)/common -DSYSCONFDIR=\"$(sysconfdir)\" -DSYSRUNDIR=\"$(localstatedir)\"
26
27 fwknopddir        = @sysconfdir@/fwknop
28
29 dist_man_MANS     = fwknopd.8
30
31 dist_fwknopd_DATA = fwknopd.conf access.conf
32
33 EXTRA_DIST        = fwknopd.8.in
34
35 fwknopd.8: $(top_srcdir)/server/fwknopd.8.in
36         $(SED) \
37                 -e 's|[@]prefix@|$(prefix)|g' \
38                 -e 's|[@]sysconfdir@|$(sysconfdir)|g' \
39                 -e 's|[@]datarootdir@|$(datarootdir)|g' \
40                 -e 's|[@]bindir@|$(bindir)|g' \
41                 -e 's|[@]sbindir@|$(sbindir)|g' \
42                 -e 's|[@]localstatedir@|$(localstatedir)|g' \
43                 < $(top_srcdir)/server/fwknopd.8.in > "$@"
44
45 clean-local:
46         rm -f fwknopd.8
47