summaryrefslogtreecommitdiff
path: root/src/libhydra/Makefile.am
blob: 601a56e38d14258e4e4e2a6f08198768416db769 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
lib_LTLIBRARIES = libhydra.la

libhydra_la_SOURCES = \
hydra.c hydra.h \
attributes/attributes.c attributes/attributes.h \
attributes/attribute_provider.h attributes/attribute_handler.h \
attributes/attribute_manager.c attributes/attribute_manager.h \
attributes/mem_pool.c attributes/mem_pool.h

libhydra_la_LIBADD =

INCLUDES = -I$(top_srcdir)/src/libstrongswan
AM_CFLAGS = \
-DIPSEC_DIR=\"${ipsecdir}\" \
-DPLUGINDIR=\"${plugindir}\" \
-DSTRONGSWAN_CONF=\"${strongswan_conf}\"

EXTRA_DIST = Android.mk

# build optional plugins
########################

if MONOLITHIC
SUBDIRS =
else
SUBDIRS = .
endif

if USE_ATTR
  SUBDIRS += plugins/attr
if MONOLITHIC
  libhydra_la_LIBADD += plugins/attr/libstrongswan-attr.la
endif
endif

if USE_ATTR_SQL
  SUBDIRS += plugins/attr_sql
if MONOLITHIC
  libhydra_la_LIBADD += plugins/attr_sql/libstrongswan-attr-sql.la
endif
endif