moved resolve plugin from libcharon to libhydra
[strongswan.git] / src / libhydra / Makefile.am
1 lib_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
10 libhydra_la_LIBADD =
11
12 INCLUDES = -I$(top_srcdir)/src/libstrongswan
13 AM_CFLAGS = \
14 -DIPSEC_DIR=\"${ipsecdir}\" \
15 -DPLUGINDIR=\"${plugindir}\" \
16 -DSTRONGSWAN_CONF=\"${strongswan_conf}\"
17
18 EXTRA_DIST = Android.mk
19
20 # build optional plugins
21 ########################
22
23 if MONOLITHIC
24 SUBDIRS =
25 else
26 SUBDIRS = .
27 endif
28
29 if USE_ATTR
30   SUBDIRS += plugins/attr
31 if MONOLITHIC
32   libhydra_la_LIBADD += plugins/attr/libstrongswan-attr.la
33 endif
34 endif
35
36 if USE_ATTR_SQL
37   SUBDIRS += plugins/attr_sql
38 if MONOLITHIC
39   libhydra_la_LIBADD += plugins/attr_sql/libstrongswan-attr-sql.la
40 endif
41 endif
42
43 if USE_RESOLVE
44   SUBDIRS += plugins/resolve
45 if MONOLITHIC
46   libhydra_la_LIBADD += plugins/resolve/libstrongswan-resolve.la
47 endif
48 endif
49