Merge branch 'modular-load'
[strongswan.git] / src / libhydra / Makefile.am
1 ipseclib_LTLIBRARIES = libhydra.la
2
3 libhydra_la_SOURCES = \
4 hydra.c hydra.h \
5 attributes/attributes.c attributes/attributes.h \
6 attributes/attribute_provider.h attributes/attribute_handler.h \
7 attributes/attribute_manager.c attributes/attribute_manager.h \
8 attributes/mem_pool.c attributes/mem_pool.h \
9 kernel/kernel_interface.c kernel/kernel_interface.h \
10 kernel/kernel_ipsec.c kernel/kernel_ipsec.h \
11 kernel/kernel_net.c kernel/kernel_net.h \
12 kernel/kernel_listener.h
13
14 libhydra_la_LIBADD = \
15   $(top_builddir)/src/libstrongswan/libstrongswan.la
16
17 AM_CPPFLAGS = \
18         -I$(top_srcdir)/src/libstrongswan \
19         -DIPSEC_DIR=\"${ipsecdir}\" \
20         -DPLUGINDIR=\"${plugindir}\" \
21         -DSTRONGSWAN_CONF=\"${strongswan_conf}\"
22
23 AM_LDFLAGS = \
24   -no-undefined
25
26 EXTRA_DIST = Android.mk
27
28 # build optional plugins
29 ########################
30
31 if MONOLITHIC
32 SUBDIRS =
33 else
34 SUBDIRS = .
35 endif
36
37 if USE_ATTR
38   SUBDIRS += plugins/attr
39 if MONOLITHIC
40   libhydra_la_LIBADD += plugins/attr/libstrongswan-attr.la
41 endif
42 endif
43
44 if USE_ATTR_SQL
45   SUBDIRS += plugins/attr_sql
46 if MONOLITHIC
47   libhydra_la_LIBADD += plugins/attr_sql/libstrongswan-attr-sql.la
48 endif
49 endif
50
51 if USE_KERNEL_PFKEY
52   SUBDIRS += plugins/kernel_pfkey
53 if MONOLITHIC
54   libhydra_la_LIBADD += plugins/kernel_pfkey/libstrongswan-kernel-pfkey.la
55 endif
56 endif
57
58 if USE_KERNEL_PFROUTE
59   SUBDIRS += plugins/kernel_pfroute
60 if MONOLITHIC
61   libhydra_la_LIBADD += plugins/kernel_pfroute/libstrongswan-kernel-pfroute.la
62 endif
63 endif
64
65 if USE_KERNEL_KLIPS
66   SUBDIRS += plugins/kernel_klips
67 if MONOLITHIC
68   libhydra_la_LIBADD += plugins/kernel_klips/libstrongswan-kernel-klips.la
69 endif
70 endif
71
72 if USE_KERNEL_NETLINK
73   SUBDIRS += plugins/kernel_netlink
74 if MONOLITHIC
75   libhydra_la_LIBADD += plugins/kernel_netlink/libstrongswan-kernel-netlink.la
76 endif
77 endif
78
79 if USE_RESOLVE
80   SUBDIRS += plugins/resolve
81 if MONOLITHIC
82   libhydra_la_LIBADD += plugins/resolve/libstrongswan-resolve.la
83 endif
84 endif