Build all shared libraries with -no-undefined and link them properly
[strongswan.git] / src / libimcv / Makefile.am
1 AM_CPPFLAGS = \
2         -I$(top_srcdir)/src/libstrongswan \
3         -I$(top_srcdir)/src/libtncif
4
5 ipseclib_LTLIBRARIES = libimcv.la
6
7 libimcv_la_LDFLAGS = \
8         -no-undefined
9
10 libimcv_la_LIBADD = \
11         $(top_builddir)/src/libstrongswan/libstrongswan.la \
12         $(top_builddir)/src/libtncif/libtncif.la
13
14 libimcv_la_SOURCES = \
15         imcv.h imcv.c \
16         imc/imc_agent.h imc/imc_agent.c imc/imc_state.h \
17         imc/imc_msg.h imc/imc_msg.c \
18         imv/imv_agent.h imv/imv_agent.c imv/imv_state.h \
19         imv/imv_agent_if.h imv/imv_if.h \
20         imv/imv_database.h imv/imv_database.c \
21         imv/imv_msg.h imv/imv_msg.c \
22         imv/imv_lang_string.h imv/imv_lang_string.c \
23         imv/imv_reason_string.h imv/imv_reason_string.c \
24         imv/imv_remediation_string.h imv/imv_remediation_string.c \
25         imv/imv_session.h imv/imv_session.c \
26         imv/imv_workitem.h imv/imv_workitem.c \
27         imv/tables.sql imv/data.sql \
28         ietf/ietf_attr.h ietf/ietf_attr.c \
29         ietf/ietf_attr_assess_result.h ietf/ietf_attr_assess_result.c \
30         ietf/ietf_attr_attr_request.h ietf/ietf_attr_attr_request.c \
31         ietf/ietf_attr_fwd_enabled.h ietf/ietf_attr_fwd_enabled.c \
32         ietf/ietf_attr_default_pwd_enabled.h ietf/ietf_attr_default_pwd_enabled.c \
33         ietf/ietf_attr_installed_packages.h ietf/ietf_attr_installed_packages.c \
34         ietf/ietf_attr_numeric_version.h ietf/ietf_attr_numeric_version.c \
35         ietf/ietf_attr_op_status.h ietf/ietf_attr_op_status.c \
36         ietf/ietf_attr_pa_tnc_error.h ietf/ietf_attr_pa_tnc_error.c \
37         ietf/ietf_attr_port_filter.h ietf/ietf_attr_port_filter.c \
38         ietf/ietf_attr_product_info.h ietf/ietf_attr_product_info.c \
39         ietf/ietf_attr_remediation_instr.h ietf/ietf_attr_remediation_instr.c \
40         ietf/ietf_attr_string_version.h ietf/ietf_attr_string_version.c \
41         ita/ita_attr.h ita/ita_attr.c \
42         ita/ita_attr_command.h ita/ita_attr_command.c \
43         ita/ita_attr_dummy.h ita/ita_attr_dummy.c \
44         ita/ita_attr_get_settings.h ita/ita_attr_get_settings.c \
45         ita/ita_attr_settings.h ita/ita_attr_settings.c \
46         ita/ita_attr_angel.h ita/ita_attr_angel.c \
47         ita/ita_attr_device_id.h ita/ita_attr_device_id.c \
48         os_info/os_info.h os_info/os_info.c \
49         pa_tnc/pa_tnc_attr.h \
50         pa_tnc/pa_tnc_msg.h pa_tnc/pa_tnc_msg.c \
51         pa_tnc/pa_tnc_attr_manager.h pa_tnc/pa_tnc_attr_manager.c
52
53 ipsec_SCRIPTS = imv/_imv_policy
54 EXTRA_DIST = imv/_imv_policy
55
56 ipsec_PROGRAMS = imv_policy_manager
57 imv_policy_manager_SOURCES = \
58         imv/imv_policy_manager.c \
59         imv/imv_policy_manager_usage.h imv/imv_policy_manager_usage.c
60 imv_policy_manager_LDADD = \
61         $(top_builddir)/src/libstrongswan/libstrongswan.la
62 #imv/imv_policy_manager.o :     $(top_builddir)/config.status
63
64 SUBDIRS = .
65
66 if USE_IMC_TEST
67   SUBDIRS += plugins/imc_test
68 endif
69
70 if USE_IMV_TEST
71   SUBDIRS += plugins/imv_test
72 endif
73
74 if USE_IMC_SCANNER
75   SUBDIRS += plugins/imc_scanner
76 endif
77
78 if USE_IMV_SCANNER
79   SUBDIRS += plugins/imv_scanner
80 endif
81
82 if USE_IMC_OS
83   SUBDIRS += plugins/imc_os
84 endif
85
86 if USE_IMV_OS
87   SUBDIRS += plugins/imv_os
88 endif