Build all shared libraries with -no-undefined and link them properly
[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 libtnccs_la_SOURCES = \
16 tnc/tnc.h tnc/tnc.c \
17 tnc/imc/imc.h tnc/imc/imc_manager.h \
18 tnc/imv/imv.h tnc/imv/imv_manager.h \
19 tnc/imv/imv_recommendations.h tnc/imv/imv_recommendations.c \
20 tnc/tnccs/tnccs.h tnc/tnccs/tnccs.c \
21 tnc/tnccs/tnccs_manager.h tnc/tnccs/tnccs_manager.c
22
23 EXTRA_DIST = Android.mk
24
25 # build optional plugins
26 ########################
27
28 if MONOLITHIC
29 SUBDIRS =
30 else
31 SUBDIRS = .
32 endif
33
34 if USE_TNC_TNCCS
35   SUBDIRS += plugins/tnc_tnccs
36 if MONOLITHIC
37   libtnccs_la_LIBADD += plugins/tnc_tnccs/libstrongswan-tnc-tnccs.la
38 endif
39 endif
40
41 if USE_TNC_IMC
42   SUBDIRS += plugins/tnc_imc
43 if MONOLITHIC
44   libtnccs_la_LIBADD += plugins/tnc_imc/libstrongswan-tnc-imc.la
45 endif
46 endif
47
48 if USE_TNC_IMV
49   SUBDIRS += plugins/tnc_imv
50 if MONOLITHIC
51   libtnccs_la_LIBADD += plugins/tnc_imv/libstrongswan-tnc-imv.la
52 endif
53 endif
54
55 if USE_TNCCS_11
56   SUBDIRS += plugins/tnccs_11
57 if MONOLITHIC
58   libtnccs_la_LIBADD += plugins/tnccs_11/libstrongswan-tnccs-11.la
59 endif
60 endif
61
62 if USE_TNCCS_20
63   SUBDIRS += plugins/tnccs_20
64 if MONOLITHIC
65   libtnccs_la_LIBADD += plugins/tnccs_20/libstrongswan-tnccs-20.la
66 endif
67 endif
68
69 if USE_TNCCS_DYNAMIC
70   SUBDIRS += plugins/tnccs_dynamic
71 if MONOLITHIC
72   libtnccs_la_LIBADD += plugins/tnccs_dynamic/libstrongswan-tnccs-dynamic.la
73 endif
74 endif
75
76