8cde4b7fce5246d9847f05e35ba575f45b684607
[strongswan.git] / src / libimcv / Makefile.am
1 AM_CPPFLAGS = \
2         -I$(top_srcdir)/src/libstrongswan \
3         -I$(top_srcdir)/src/libtncif \
4         -I$(top_srcdir)/src/libtpmtss \
5         -DIPSEC_SCRIPT=\"${ipsec_script}\"
6
7 ipseclib_LTLIBRARIES = libimcv.la
8
9 libimcv_la_LDFLAGS = \
10         -no-undefined
11
12 libimcv_la_LIBADD = \
13         $(top_builddir)/src/libstrongswan/libstrongswan.la \
14         $(top_builddir)/src/libtncif/libtncif.la \
15         $(top_builddir)/src/libtpmtss/libtpmtss.la
16
17 if USE_WINDOWS
18   libimcv_la_LIBADD += -lws2_32
19 endif
20
21 libimcv_la_SOURCES = \
22         imcv.h imcv.c \
23         imc/imc_agent.h imc/imc_agent.c imc/imc_state.h \
24         imc/imc_msg.h imc/imc_msg.c \
25         imc/imc_os_info.h imc/imc_os_info.c \
26         imv/imv_agent.h imv/imv_agent.c imv/imv_state.h \
27         imv/imv_agent_if.h imv/imv_if.h \
28         imv/imv_database.h imv/imv_database.c \
29         imv/imv_msg.h imv/imv_msg.c \
30         imv/imv_lang_string.h imv/imv_lang_string.c \
31         imv/imv_os_info.h imv/imv_os_info.c \
32         imv/imv_reason_string.h imv/imv_reason_string.c \
33         imv/imv_remediation_string.h imv/imv_remediation_string.c \
34         imv/imv_session.h imv/imv_session.c \
35         imv/imv_session_manager.h imv/imv_session_manager.c \
36         imv/imv_workitem.h imv/imv_workitem.c \
37         generic/generic_attr_bool.h generic/generic_attr_bool.c \
38         generic/generic_attr_chunk.h generic/generic_attr_chunk.c \
39         generic/generic_attr_string.h generic/generic_attr_string.c \
40         ietf/ietf_attr.h ietf/ietf_attr.c \
41         ietf/ietf_attr_assess_result.h ietf/ietf_attr_assess_result.c \
42         ietf/ietf_attr_attr_request.h ietf/ietf_attr_attr_request.c \
43         ietf/ietf_attr_fwd_enabled.h ietf/ietf_attr_fwd_enabled.c \
44         ietf/ietf_attr_installed_packages.h ietf/ietf_attr_installed_packages.c \
45         ietf/ietf_attr_numeric_version.h ietf/ietf_attr_numeric_version.c \
46         ietf/ietf_attr_op_status.h ietf/ietf_attr_op_status.c \
47         ietf/ietf_attr_pa_tnc_error.h ietf/ietf_attr_pa_tnc_error.c \
48         ietf/ietf_attr_port_filter.h ietf/ietf_attr_port_filter.c \
49         ietf/ietf_attr_product_info.h ietf/ietf_attr_product_info.c \
50         ietf/ietf_attr_remediation_instr.h ietf/ietf_attr_remediation_instr.c \
51         ietf/ietf_attr_string_version.h ietf/ietf_attr_string_version.c \
52         ita/ita_attr.h ita/ita_attr.c \
53         ita/ita_attr_command.h ita/ita_attr_command.c \
54         ita/ita_attr_dummy.h ita/ita_attr_dummy.c \
55         ita/ita_attr_get_settings.h ita/ita_attr_get_settings.c \
56         ita/ita_attr_settings.h ita/ita_attr_settings.c \
57         ita/ita_attr_angel.h ita/ita_attr_angel.c \
58         os_info/os_info.h os_info/os_info.c \
59         pa_tnc/pa_tnc_attr.h \
60         pa_tnc/pa_tnc_msg.h pa_tnc/pa_tnc_msg.c \
61         pa_tnc/pa_tnc_attr_manager.h pa_tnc/pa_tnc_attr_manager.c \
62         pts/pts.h pts/pts.c \
63         pts/pts_error.h pts/pts_error.c \
64         pts/pts_pcr.h pts/pts_pcr.c \
65         pts/pts_proto_caps.h \
66         pts/pts_req_func_comp_evid.h \
67         pts/pts_creds.h pts/pts_creds.c \
68         pts/pts_database.h pts/pts_database.c \
69         pts/pts_dh_group.h pts/pts_dh_group.c \
70         pts/pts_file_meas.h pts/pts_file_meas.c \
71         pts/pts_file_meta.h pts/pts_file_meta.c \
72         pts/pts_file_type.h pts/pts_file_type.c \
73         pts/pts_ima_bios_list.h pts/pts_ima_bios_list.c \
74         pts/pts_ima_event_list.h pts/pts_ima_event_list.c \
75         pts/pts_meas_algo.h pts/pts_meas_algo.c \
76         pts/components/pts_component.h \
77         pts/components/pts_component_manager.h pts/components/pts_component_manager.c \
78         pts/components/pts_comp_evidence.h pts/components/pts_comp_evidence.c \
79         pts/components/pts_comp_func_name.h pts/components/pts_comp_func_name.c \
80         pts/components/ita/ita_comp_func_name.h pts/components/ita/ita_comp_func_name.c \
81         pts/components/ita/ita_comp_ima.h pts/components/ita/ita_comp_ima.c \
82         pts/components/ita/ita_comp_tboot.h pts/components/ita/ita_comp_tboot.c \
83         pts/components/ita/ita_comp_tgrub.h pts/components/ita/ita_comp_tgrub.c \
84         pts/components/tcg/tcg_comp_func_name.h pts/components/tcg/tcg_comp_func_name.c \
85         pwg/pwg_attr.h pwg/pwg_attr.c \
86         pwg/pwg_attr_vendor_smi_code.h pwg/pwg_attr_vendor_smi_code.c \
87         seg/seg_contract.h seg/seg_contract.c \
88         seg/seg_contract_manager.h seg/seg_contract_manager.c \
89         seg/seg_env.h seg/seg_env.c \
90         swid/swid_error.h swid/swid_error.c \
91         swid/swid_inventory.h swid/swid_inventory.c \
92         swid/swid_tag.h swid/swid_tag.c \
93         swid/swid_tag_id.h swid/swid_tag_id.c \
94         tcg/tcg_attr.h tcg/tcg_attr.c \
95         tcg/pts/tcg_pts_attr_proto_caps.h tcg/pts/tcg_pts_attr_proto_caps.c \
96         tcg/pts/tcg_pts_attr_dh_nonce_params_req.h tcg/pts/tcg_pts_attr_dh_nonce_params_req.c \
97         tcg/pts/tcg_pts_attr_dh_nonce_params_resp.h tcg/pts/tcg_pts_attr_dh_nonce_params_resp.c \
98         tcg/pts/tcg_pts_attr_dh_nonce_finish.h tcg/pts/tcg_pts_attr_dh_nonce_finish.c \
99         tcg/pts/tcg_pts_attr_meas_algo.h tcg/pts/tcg_pts_attr_meas_algo.c \
100         tcg/pts/tcg_pts_attr_get_tpm_version_info.h tcg/pts/tcg_pts_attr_get_tpm_version_info.c \
101         tcg/pts/tcg_pts_attr_tpm_version_info.h tcg/pts/tcg_pts_attr_tpm_version_info.c \
102         tcg/pts/tcg_pts_attr_get_aik.h tcg/pts/tcg_pts_attr_get_aik.c \
103         tcg/pts/tcg_pts_attr_aik.h tcg/pts/tcg_pts_attr_aik.c \
104         tcg/pts/tcg_pts_attr_req_func_comp_evid.h tcg/pts/tcg_pts_attr_req_func_comp_evid.c \
105         tcg/pts/tcg_pts_attr_gen_attest_evid.h tcg/pts/tcg_pts_attr_gen_attest_evid.c \
106         tcg/pts/tcg_pts_attr_simple_comp_evid.h tcg/pts/tcg_pts_attr_simple_comp_evid.c \
107         tcg/pts/tcg_pts_attr_simple_evid_final.h tcg/pts/tcg_pts_attr_simple_evid_final.c \
108         tcg/pts/tcg_pts_attr_req_file_meas.h tcg/pts/tcg_pts_attr_req_file_meas.c \
109         tcg/pts/tcg_pts_attr_file_meas.h tcg/pts/tcg_pts_attr_file_meas.c \
110         tcg/pts/tcg_pts_attr_req_file_meta.h tcg/pts/tcg_pts_attr_req_file_meta.c \
111         tcg/pts/tcg_pts_attr_unix_file_meta.h tcg/pts/tcg_pts_attr_unix_file_meta.c \
112         tcg/seg/tcg_seg_attr_max_size.h tcg/seg/tcg_seg_attr_max_size.c \
113         tcg/seg/tcg_seg_attr_seg_env.h tcg/seg/tcg_seg_attr_seg_env.c \
114         tcg/seg/tcg_seg_attr_next_seg.h tcg/seg/tcg_seg_attr_next_seg.c \
115         tcg/swid/tcg_swid_attr_req.h tcg/swid/tcg_swid_attr_req.c \
116         tcg/swid/tcg_swid_attr_tag_id_inv.h tcg/swid/tcg_swid_attr_tag_id_inv.c \
117         tcg/swid/tcg_swid_attr_tag_inv.h tcg/swid/tcg_swid_attr_tag_inv.c
118
119 ipsec_SCRIPTS = imv/_imv_policy
120 EXTRA_DIST = imv/_imv_policy Android.mk
121
122 templatesdir = $(pkgdatadir)/templates/database/imv
123 dist_templates_DATA = imv/tables.sql imv/tables-mysql.sql imv/data.sql
124
125 ipsec_PROGRAMS = imv_policy_manager
126 imv_policy_manager_SOURCES = \
127         imv/imv_policy_manager.c \
128         imv/imv_policy_manager_usage.h imv/imv_policy_manager_usage.c
129 imv_policy_manager_LDADD = \
130         $(top_builddir)/src/libstrongswan/libstrongswan.la \
131         $(top_builddir)/src/libtncif/libtncif.la
132 #imv/imv_policy_manager.o :     $(top_builddir)/config.status
133
134 SUBDIRS = .
135
136 if USE_IMC_TEST
137   SUBDIRS += plugins/imc_test
138 endif
139
140 if USE_IMV_TEST
141   SUBDIRS += plugins/imv_test
142 endif
143
144 if USE_IMC_SCANNER
145   SUBDIRS += plugins/imc_scanner
146 endif
147
148 if USE_IMV_SCANNER
149   SUBDIRS += plugins/imv_scanner
150 endif
151
152 if USE_IMC_OS
153   SUBDIRS += plugins/imc_os
154 endif
155
156 if USE_IMV_OS
157   SUBDIRS += plugins/imv_os
158 endif
159
160 if USE_IMC_ATTESTATION
161   SUBDIRS += plugins/imc_attestation
162 endif
163
164 if USE_IMV_ATTESTATION
165   SUBDIRS += plugins/imv_attestation
166 endif
167
168 if USE_IMC_SWID
169   SUBDIRS += plugins/imc_swid
170 endif
171
172 if USE_IMV_SWID
173   SUBDIRS += plugins/imv_swid
174 endif
175
176 if USE_IMC_HCD
177   SUBDIRS += plugins/imc_hcd
178 endif
179
180 if USE_IMV_HCD
181   SUBDIRS += plugins/imv_hcd
182 endif
183
184 TESTS = imcv_tests
185
186 check_PROGRAMS = $(TESTS)
187
188 imcv_tests_SOURCES = \
189         ita/ita_attr_command.c \
190         pa_tnc/pa_tnc_attr_manager.c \
191         seg/seg_env.c seg/seg_contract.c \
192         seg/seg_contract_manager.c \
193         suites/test_imcv_seg.c \
194         ietf/ietf_attr_pa_tnc_error.c \
195         tcg/seg/tcg_seg_attr_seg_env.c \
196         imcv.c imcv_tests.h imcv_tests.c
197
198 imcv_tests_CFLAGS = \
199         -I$(top_srcdir)/src/libimcv \
200         -I$(top_srcdir)/src/libstrongswan \
201         -I$(top_srcdir)/src/libstrongswan/tests \
202         @COVERAGE_CFLAGS@
203
204 imcv_tests_LDFLAGS = @COVERAGE_LDFLAGS@
205 imcv_tests_LDADD = \
206         $(top_builddir)/src/libimcv/libimcv.la \
207         $(top_builddir)/src/libtpmtss/libtpmtss.la \
208         $(top_builddir)/src/libstrongswan/libstrongswan.la \
209         $(top_builddir)/src/libstrongswan/tests/libtest.la