kernel-netlink: Fallback to UDP if detecting socket protocol fails
[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
26 AM_LDFLAGS = \
27   -no-undefined
28
29 EXTRA_DIST = Android.mk
30
31 # build optional plugins
32 ########################
33
34 if MONOLITHIC
35 SUBDIRS =
36 else
37 SUBDIRS = .
38 endif
39
40 if USE_ATTR
41   SUBDIRS += plugins/attr
42 if MONOLITHIC
43   libhydra_la_LIBADD += plugins/attr/libstrongswan-attr.la
44 endif
45 endif
46
47 if USE_ATTR_SQL
48   SUBDIRS += plugins/attr_sql
49 if MONOLITHIC
50   libhydra_la_LIBADD += plugins/attr_sql/libstrongswan-attr-sql.la
51 endif
52 endif
53
54 if USE_KERNEL_PFKEY
55   SUBDIRS += plugins/kernel_pfkey
56 if MONOLITHIC
57   libhydra_la_LIBADD += plugins/kernel_pfkey/libstrongswan-kernel-pfkey.la
58 endif
59 endif
60
61 if USE_KERNEL_PFROUTE
62   SUBDIRS += plugins/kernel_pfroute
63 if MONOLITHIC
64   libhydra_la_LIBADD += plugins/kernel_pfroute/libstrongswan-kernel-pfroute.la
65 endif
66 endif
67
68 if USE_KERNEL_NETLINK
69   SUBDIRS += plugins/kernel_netlink
70 if MONOLITHIC
71   libhydra_la_LIBADD += plugins/kernel_netlink/libstrongswan-kernel-netlink.la
72 endif
73 endif
74
75 if USE_RESOLVE
76   SUBDIRS += plugins/resolve
77 if MONOLITHIC
78   libhydra_la_LIBADD += plugins/resolve/libstrongswan-resolve.la
79 endif
80 endif
81
82 if MONOLITHIC
83   SUBDIRS += .
84 endif
85 SUBDIRS += tests