summaryrefslogtreecommitdiff
path: root/src/libtnccs/Makefile.am
blob: ff7b54f6ae1b9069e976d8609bb099e991335b1c (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
AM_CPPFLAGS = \
	-I$(top_srcdir)/src/libstrongswan \
	-I$(top_srcdir)/src/libtncif \
	-I$(top_srcdir)/src/libtls

AM_LDFLAGS = \
	-no-undefined

ipseclib_LTLIBRARIES = libtnccs.la

libtnccs_la_LIBADD = \
	$(top_builddir)/src/libstrongswan/libstrongswan.la \
	$(top_builddir)/src/libtncif/libtncif.la

if USE_WINDOWS
  libtnccs_la_LIBADD += -lws2_32
endif

libtnccs_la_SOURCES = \
tnc/tnc.h tnc/tnc.c \
tnc/imc/imc.h tnc/imc/imc_manager.h \
tnc/imv/imv.h tnc/imv/imv_manager.h \
tnc/imv/imv_recommendations.h tnc/imv/imv_recommendations.c \
tnc/tnccs/tnccs.h tnc/tnccs/tnccs.c \
tnc/tnccs/tnccs_manager.h tnc/tnccs/tnccs_manager.c

EXTRA_DIST = Android.mk

if STATIC_PLUGIN_CONSTRUCTORS
BUILT_SOURCES = $(srcdir)/plugin_constructors.c
CLEANFILES = $(srcdir)/plugin_constructors.c

$(srcdir)/plugin_constructors.c: $(top_srcdir)/src/libstrongswan/plugins/plugin_constructors.py
		$(AM_V_GEN) \
		$(PYTHON) $(top_srcdir)/src/libstrongswan/plugins/plugin_constructors.py ${t_plugins} > $@
endif

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

if MONOLITHIC
SUBDIRS =
else
SUBDIRS = .
endif

if USE_TNC_TNCCS
  SUBDIRS += plugins/tnc_tnccs
if MONOLITHIC
  libtnccs_la_LIBADD += plugins/tnc_tnccs/libstrongswan-tnc-tnccs.la
endif
endif

if USE_TNC_IMC
  SUBDIRS += plugins/tnc_imc
if MONOLITHIC
  libtnccs_la_LIBADD += plugins/tnc_imc/libstrongswan-tnc-imc.la
endif
endif

if USE_TNC_IMV
  SUBDIRS += plugins/tnc_imv
if MONOLITHIC
  libtnccs_la_LIBADD += plugins/tnc_imv/libstrongswan-tnc-imv.la
endif
endif

if USE_TNCCS_11
  SUBDIRS += plugins/tnccs_11
if MONOLITHIC
  libtnccs_la_LIBADD += plugins/tnccs_11/libstrongswan-tnccs-11.la
endif
endif

if USE_TNCCS_20
  SUBDIRS += plugins/tnccs_20
if MONOLITHIC
  libtnccs_la_LIBADD += plugins/tnccs_20/libstrongswan-tnccs-20.la
endif
endif

if USE_TNCCS_DYNAMIC
  SUBDIRS += plugins/tnccs_dynamic
if MONOLITHIC
  libtnccs_la_LIBADD += plugins/tnccs_dynamic/libstrongswan-tnccs-dynamic.la
endif
endif