50964e6892c748db7a3cd9bc6f6ff4902fd55a09
[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 if USE_WINDOWS
18   libhydra_la_LIBADD += -lws2_32
19 endif
20
21 AM_CPPFLAGS = \
22         -I$(top_srcdir)/src/libstrongswan \
23         -DIPSEC_DIR=\"${ipsecdir}\" \
24         -DPLUGINDIR=\"${plugindir}\" \
25         -DSTRONGSWAN_CONF=\"${strongswan_conf}\"
26
27 AM_LDFLAGS = \
28   -no-undefined
29
30 EXTRA_DIST = Android.mk
31
32 # build optional plugins
33 ########################
34
35 if MONOLITHIC
36 SUBDIRS =
37 else
38 SUBDIRS = .
39 endif
40
41 if USE_ATTR
42   SUBDIRS += plugins/attr
43 if MONOLITHIC
44   libhydra_la_LIBADD += plugins/attr/libstrongswan-attr.la
45 endif
46 endif
47
48 if USE_ATTR_SQL
49   SUBDIRS += plugins/attr_sql
50 if MONOLITHIC
51   libhydra_la_LIBADD += plugins/attr_sql/libstrongswan-attr-sql.la
52 endif
53 endif
54
55 if USE_KERNEL_PFKEY
56   SUBDIRS += plugins/kernel_pfkey
57 if MONOLITHIC
58   libhydra_la_LIBADD += plugins/kernel_pfkey/libstrongswan-kernel-pfkey.la
59 endif
60 endif
61
62 if USE_KERNEL_PFROUTE
63   SUBDIRS += plugins/kernel_pfroute
64 if MONOLITHIC
65   libhydra_la_LIBADD += plugins/kernel_pfroute/libstrongswan-kernel-pfroute.la
66 endif
67 endif
68
69 if USE_KERNEL_KLIPS
70   SUBDIRS += plugins/kernel_klips
71 if MONOLITHIC
72   libhydra_la_LIBADD += plugins/kernel_klips/libstrongswan-kernel-klips.la
73 endif
74 endif
75
76 if USE_KERNEL_NETLINK
77   SUBDIRS += plugins/kernel_netlink
78 if MONOLITHIC
79   libhydra_la_LIBADD += plugins/kernel_netlink/libstrongswan-kernel-netlink.la
80 endif
81 endif
82
83 if USE_RESOLVE
84   SUBDIRS += plugins/resolve
85 if MONOLITHIC
86   libhydra_la_LIBADD += plugins/resolve/libstrongswan-resolve.la
87 endif
88 endif