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