daemon: Flush shunts before unloading plugins
[strongswan.git] / src / libhydra / Makefile.am
1 ipseclib_LTLIBRARIES = libhydra.la
2
3 libhydra_la_SOURCES = \
4 hydra.c hydra.h \
5 kernel/kernel_interface.c kernel/kernel_interface.h \
6 kernel/kernel_ipsec.c kernel/kernel_ipsec.h \
7 kernel/kernel_net.c kernel/kernel_net.h \
8 kernel/kernel_listener.h
9
10 libhydra_la_LIBADD = \
11   $(top_builddir)/src/libstrongswan/libstrongswan.la
12
13 if USE_WINDOWS
14   libhydra_la_LIBADD += -lws2_32
15 endif
16
17 AM_CPPFLAGS = \
18         -I$(top_srcdir)/src/libstrongswan \
19         -DIPSEC_DIR=\"${ipsecdir}\" \
20         -DPLUGINDIR=\"${plugindir}\"
21
22 AM_LDFLAGS = \
23   -no-undefined
24
25 EXTRA_DIST = Android.mk
26
27 # build optional plugins
28 ########################
29
30 if MONOLITHIC
31 SUBDIRS =
32 else
33 SUBDIRS = .
34 endif
35
36 if USE_KERNEL_PFKEY
37   SUBDIRS += plugins/kernel_pfkey
38 if MONOLITHIC
39   libhydra_la_LIBADD += plugins/kernel_pfkey/libstrongswan-kernel-pfkey.la
40 endif
41 endif
42
43 if USE_KERNEL_PFROUTE
44   SUBDIRS += plugins/kernel_pfroute
45 if MONOLITHIC
46   libhydra_la_LIBADD += plugins/kernel_pfroute/libstrongswan-kernel-pfroute.la
47 endif
48 endif
49
50 if USE_KERNEL_NETLINK
51   SUBDIRS += plugins/kernel_netlink
52 if MONOLITHIC
53   libhydra_la_LIBADD += plugins/kernel_netlink/libstrongswan-kernel-netlink.la
54 endif
55 endif
56
57 if MONOLITHIC
58   SUBDIRS += .
59 endif
60 SUBDIRS += tests