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