86 lines
1.8 KiB
Makefile
86 lines
1.8 KiB
Makefile
ipseclib_LTLIBRARIES = libhydra.la
|
|
|
|
libhydra_la_SOURCES = \
|
|
hydra.c hydra.h \
|
|
attributes/attributes.c attributes/attributes.h \
|
|
attributes/attribute_provider.h attributes/attribute_handler.h \
|
|
attributes/attribute_manager.c attributes/attribute_manager.h \
|
|
attributes/mem_pool.c attributes/mem_pool.h \
|
|
kernel/kernel_interface.c kernel/kernel_interface.h \
|
|
kernel/kernel_ipsec.c kernel/kernel_ipsec.h \
|
|
kernel/kernel_net.c kernel/kernel_net.h \
|
|
kernel/kernel_listener.h
|
|
|
|
libhydra_la_LIBADD = \
|
|
$(top_builddir)/src/libstrongswan/libstrongswan.la
|
|
|
|
if USE_WINDOWS
|
|
libhydra_la_LIBADD += -lws2_32
|
|
endif
|
|
|
|
AM_CPPFLAGS = \
|
|
-I$(top_srcdir)/src/libstrongswan \
|
|
-DIPSEC_DIR=\"${ipsecdir}\" \
|
|
-DPLUGINDIR=\"${plugindir}\"
|
|
|
|
AM_LDFLAGS = \
|
|
-no-undefined
|
|
|
|
EXTRA_DIST = Android.mk
|
|
|
|
# build optional plugins
|
|
########################
|
|
|
|
if MONOLITHIC
|
|
SUBDIRS =
|
|
else
|
|
SUBDIRS = .
|
|
endif
|
|
|
|
if USE_ATTR
|
|
SUBDIRS += plugins/attr
|
|
if MONOLITHIC
|
|
libhydra_la_LIBADD += plugins/attr/libstrongswan-attr.la
|
|
endif
|
|
endif
|
|
|
|
if USE_ATTR_SQL
|
|
SUBDIRS += plugins/attr_sql
|
|
if MONOLITHIC
|
|
libhydra_la_LIBADD += plugins/attr_sql/libstrongswan-attr-sql.la
|
|
endif
|
|
endif
|
|
|
|
if USE_KERNEL_PFKEY
|
|
SUBDIRS += plugins/kernel_pfkey
|
|
if MONOLITHIC
|
|
libhydra_la_LIBADD += plugins/kernel_pfkey/libstrongswan-kernel-pfkey.la
|
|
endif
|
|
endif
|
|
|
|
if USE_KERNEL_PFROUTE
|
|
SUBDIRS += plugins/kernel_pfroute
|
|
if MONOLITHIC
|
|
libhydra_la_LIBADD += plugins/kernel_pfroute/libstrongswan-kernel-pfroute.la
|
|
endif
|
|
endif
|
|
|
|
if USE_KERNEL_NETLINK
|
|
SUBDIRS += plugins/kernel_netlink
|
|
if MONOLITHIC
|
|
libhydra_la_LIBADD += plugins/kernel_netlink/libstrongswan-kernel-netlink.la
|
|
endif
|
|
endif
|
|
|
|
if USE_RESOLVE
|
|
SUBDIRS += plugins/resolve
|
|
if MONOLITHIC
|
|
libhydra_la_LIBADD += plugins/resolve/libstrongswan-resolve.la
|
|
endif
|
|
endif
|
|
|
|
if MONOLITHIC
|
|
SUBDIRS += .
|
|
endif
|
|
SUBDIRS += tests
|