28303fc70455e0028a9e92283355f9802846599c
[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 MONOLITHIC
37   SUBDIRS += .
38 endif
39 SUBDIRS += tests