Add plugin constructor registration for all libraries that provide plugins
[strongswan.git] / src / libtnccs / Makefile.am
1 AM_CPPFLAGS = \
2         -I$(top_srcdir)/src/libstrongswan \
3         -I$(top_srcdir)/src/libtncif \
4         -I$(top_srcdir)/src/libtls
5
6 AM_LDFLAGS = \
7         -no-undefined
8
9 ipseclib_LTLIBRARIES = libtnccs.la
10
11 libtnccs_la_LIBADD = \
12         $(top_builddir)/src/libstrongswan/libstrongswan.la \
13         $(top_builddir)/src/libtncif/libtncif.la
14
15 if USE_WINDOWS
16   libtnccs_la_LIBADD += -lws2_32
17 endif
18
19 libtnccs_la_SOURCES = \
20 tnc/tnc.h tnc/tnc.c \
21 tnc/imc/imc.h tnc/imc/imc_manager.h \
22 tnc/imv/imv.h tnc/imv/imv_manager.h \
23 tnc/imv/imv_recommendations.h tnc/imv/imv_recommendations.c \
24 tnc/tnccs/tnccs.h tnc/tnccs/tnccs.c \
25 tnc/tnccs/tnccs_manager.h tnc/tnccs/tnccs_manager.c
26
27 EXTRA_DIST = Android.mk
28
29 if STATIC_PLUGIN_CONSTRUCTORS
30 BUILT_SOURCES = $(srcdir)/plugin_constructors.c
31 CLEANFILES = $(srcdir)/plugin_constructors.c
32
33 $(srcdir)/plugin_constructors.c: $(top_srcdir)/src/libstrongswan/plugins/plugin_constructors.py
34                 $(AM_V_GEN) \
35                 $(PYTHON) $(top_srcdir)/src/libstrongswan/plugins/plugin_constructors.py ${t_plugins} > $@
36 endif
37
38 # build optional plugins
39 ########################
40
41 if MONOLITHIC
42 SUBDIRS =
43 else
44 SUBDIRS = .
45 endif
46
47 if USE_TNC_TNCCS
48   SUBDIRS += plugins/tnc_tnccs
49 if MONOLITHIC
50   libtnccs_la_LIBADD += plugins/tnc_tnccs/libstrongswan-tnc-tnccs.la
51 endif
52 endif
53
54 if USE_TNC_IMC
55   SUBDIRS += plugins/tnc_imc
56 if MONOLITHIC
57   libtnccs_la_LIBADD += plugins/tnc_imc/libstrongswan-tnc-imc.la
58 endif
59 endif
60
61 if USE_TNC_IMV
62   SUBDIRS += plugins/tnc_imv
63 if MONOLITHIC
64   libtnccs_la_LIBADD += plugins/tnc_imv/libstrongswan-tnc-imv.la
65 endif
66 endif
67
68 if USE_TNCCS_11
69   SUBDIRS += plugins/tnccs_11
70 if MONOLITHIC
71   libtnccs_la_LIBADD += plugins/tnccs_11/libstrongswan-tnccs-11.la
72 endif
73 endif
74
75 if USE_TNCCS_20
76   SUBDIRS += plugins/tnccs_20
77 if MONOLITHIC
78   libtnccs_la_LIBADD += plugins/tnccs_20/libstrongswan-tnccs-20.la
79 endif
80 endif
81
82 if USE_TNCCS_DYNAMIC
83   SUBDIRS += plugins/tnccs_dynamic
84 if MONOLITHIC
85   libtnccs_la_LIBADD += plugins/tnccs_dynamic/libstrongswan-tnccs-dynamic.la
86 endif
87 endif