xfrmi: Move to a separate directory to fix monolithic build

This commit is contained in:
Tobias Brunner 2019-02-13 10:33:59 +01:00
parent eef9236602
commit d74ddd7893
7 changed files with 19 additions and 8 deletions

View File

@ -2009,6 +2009,7 @@ AC_CONFIG_FILES([
src/sw-collector/Makefile
src/sec-updater/Makefile
src/swanctl/Makefile
src/xfrmi/Makefile
scripts/Makefile
testing/Makefile
])

View File

@ -143,3 +143,7 @@ endif
if USE_TPM
SUBDIRS += tpm_extendpcr
endif
if USE_KERNEL_NETLINK
SUBDIRS += xfrmi
endif

View File

@ -1,2 +1 @@
kernel_netlink_tests
xfrmi

View File

@ -24,13 +24,6 @@ libstrongswan_kernel_netlink_la_LIBADD = $(DLLIB)
libstrongswan_kernel_netlink_la_LDFLAGS = -module -avoid-version
ipsec_PROGRAMS = xfrmi
xfrmi_SOURCES = xfrmi.c
xfrmi_LDADD = \
libstrongswan-kernel-netlink.la \
$(top_builddir)/src/libstrongswan/libstrongswan.la \
$(top_builddir)/src/libcharon/libcharon.la
TESTS = kernel_netlink_tests
check_PROGRAMS = $(TESTS)

1
src/xfrmi/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
xfrmi

13
src/xfrmi/Makefile.am Normal file
View File

@ -0,0 +1,13 @@
ipsec_PROGRAMS = xfrmi
xfrmi_SOURCES = xfrmi.c
AM_CPPFLAGS = \
-I$(top_srcdir)/src/libstrongswan \
-I$(top_srcdir)/src/libcharon \
-I$(top_srcdir)/src/libcharon/plugins/kernel_netlink
xfrmi_LDADD = \
$(top_builddir)/src/libcharon/plugins/kernel_netlink/libstrongswan-kernel-netlink.la \
$(top_builddir)/src/libstrongswan/libstrongswan.la \
$(top_builddir)/src/libcharon/libcharon.la