Use of subdir-objects libtool option.

This commit is contained in:
Franck Joncourt 2014-12-29 13:25:01 +01:00
parent 750fd97bda
commit cb13d84d48
2 changed files with 30 additions and 24 deletions

View File

@ -21,7 +21,7 @@ AC_CONFIG_AUX_DIR(config)
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE
AM_INIT_AUTOMAKE([subdir-objects])
dnl AM_MAINTAINER_MODE

View File

@ -1,34 +1,40 @@
bin_PROGRAMS = fwknop_utests fwknopd_utests
fwknop_utests_SOURCES = fwknop_utests.c fwknop_common.h \
$(top_srcdir)/client/config_init.c config_init.h \
$(top_srcdir)/client/spa_comm.c spa_comm.h \
$(top_srcdir)/client/utils.c utils.h \
$(top_srcdir)/client/http_resolve_host.c \
$(top_srcdir)/client/getpasswd.c getpasswd.h cmd_opts.h \
$(top_srcdir)/client/log_msg.c log_msg.h
fwknop_utests_SOURCES = fwknop_utests.c \
../../client/config_init.c \
../../client/spa_comm.c \
../../client/utils.c \
../../client/http_resolve_host.c \
../../client/getpasswd.c \
../../client/log_msg.c
fwknop_utests_CPPFLAGS = -I $(top_srcdir)/lib -I $(top_srcdir)/common -I $(top_srcdir)/client
fwknop_utests_CPPFLAGS = -I ../../lib -I ../../common -I ../../client
fwknop_utests_LDADD = $(top_builddir)/lib/libfko.la $(top_builddir)/common/libfko_util.a
fwknop_utests_LDADD = ../../lib/libfko.la ../../common/libfko_util.a
fwknop_utests_LDFLAGS = -lcunit
fwknopd_utests_SOURCES = fwknopd_utests.c fwknopd.h $(top_srcdir)/server/config_init.c config_init.h \
fwknopd_common.h $(top_srcdir)/server/incoming_spa.c incoming_spa.h \
$(top_srcdir)/server/pcap_capture.c pcap_capture.h $(top_srcdir)/server/process_packet.c \
process_packet.h $(top_srcdir)/server/log_msg.c log_msg.h $(top_srcdir)/server/utils.c utils.h \
$(top_srcdir)/server/sig_handler.c sig_handler.h $(top_srcdir)/server/replay_cache.c replay_cache.h \
$(top_srcdir)/server/access.c access.h $(top_srcdir)/server/fwknopd_errors.c fwknopd_errors.h \
$(top_srcdir)/server/tcp_server.c tcp_server.h $(top_srcdir)/server/extcmd.c extcmd.h \
$(top_srcdir)/server/fw_util.c fw_util.h $(top_srcdir)/server/fw_util_ipf.c fw_util_ipf.h \
$(top_srcdir)/server/fw_util_iptables.c fw_util_iptables.h \
$(top_srcdir)/server/fw_util_ipfw.c fw_util_ipfw.h \
$(top_srcdir)/server/fw_util_pf.c fw_util_pf.h cmd_opts.h \
common.h
fwknopd_utests_SOURCES = fwknopd_utests.c \
../../server/config_init.c \
../../server/incoming_spa.c \
../../server/pcap_capture.c \
../../server/process_packet.c \
../../server/log_msg.c \
../../server/utils.c \
../../server/sig_handler.c \
../../server/replay_cache.c \
../../server/access.c\
../../server/fwknopd_errors.c \
../../server/tcp_server.c \
../../server/extcmd.c \
../../server/fw_util.c \
../../server/fw_util_ipf.c \
../../server/fw_util_iptables.c \
../../server/fw_util_ipfw.c \
../../server/fw_util_pf.c
fwknopd_utests_CPPFLAGS = -I $(top_srcdir)/lib -I $(top_srcdir)/common -I $(top_srcdir)/server -DSYSCONFDIR=\"$(sysconfdir)\" -DSYSRUNDIR=\"$(localstatedir)\"
fwknopd_utests_CPPFLAGS = -I ../../lib -I ../../common -I ../../server -DSYSCONFDIR=\"$(sysconfdir)\" -DSYSRUNDIR=\"$(localstatedir)\"
fwknopd_utests_LDADD = $(top_builddir)/lib/libfko.la $(top_builddir)/common/libfko_util.a
fwknopd_utests_LDFLAGS = -lcunit -lpcap
fwknopd_utests_LDFLAGS = -lcunit -lpcap