removed obsolete INTEGRITY_TEST and fips signer code
[strongswan.git] / src / charon / Makefile.am
1 ipsec_PROGRAMS = charon
2
3 charon_SOURCES = \
4 bus/bus.c bus/bus.h \
5 bus/listeners/file_logger.c bus/listeners/file_logger.h \
6 bus/listeners/sys_logger.c bus/listeners/sys_logger.h \
7 config/backend_manager.c config/backend_manager.h config/backend.h \
8 config/child_cfg.c config/child_cfg.h \
9 config/ike_cfg.c config/ike_cfg.h \
10 config/peer_cfg.c config/peer_cfg.h \
11 config/proposal.c config/proposal.h \
12 config/auth_cfg.c config/auth_cfg.h \
13 config/traffic_selector.c config/traffic_selector.h \
14 config/attributes/attribute_provider.h \
15 config/attributes/attribute_handler.h \
16 config/attributes/attribute_manager.c config/attributes/attribute_manager.h \
17 control/controller.c control/controller.h \
18 daemon.c daemon.h \
19 encoding/generator.c encoding/generator.h \
20 encoding/message.c encoding/message.h \
21 encoding/parser.c encoding/parser.h \
22 encoding/payloads/auth_payload.c encoding/payloads/auth_payload.h \
23 encoding/payloads/cert_payload.c encoding/payloads/cert_payload.h \
24 encoding/payloads/certreq_payload.c encoding/payloads/certreq_payload.h \
25 encoding/payloads/configuration_attribute.c encoding/payloads/configuration_attribute.h \
26 encoding/payloads/cp_payload.c encoding/payloads/cp_payload.h \
27 encoding/payloads/delete_payload.c encoding/payloads/delete_payload.h \
28 encoding/payloads/eap_payload.c encoding/payloads/eap_payload.h \
29 encoding/payloads/encodings.c encoding/payloads/encodings.h \
30 encoding/payloads/encryption_payload.c encoding/payloads/encryption_payload.h \
31 encoding/payloads/id_payload.c encoding/payloads/id_payload.h \
32 encoding/payloads/ike_header.c encoding/payloads/ike_header.h \
33 encoding/payloads/ke_payload.c  encoding/payloads/ke_payload.h \
34 encoding/payloads/nonce_payload.c encoding/payloads/nonce_payload.h \
35 encoding/payloads/notify_payload.c encoding/payloads/notify_payload.h \
36 encoding/payloads/payload.c encoding/payloads/payload.h \
37 encoding/payloads/proposal_substructure.c encoding/payloads/proposal_substructure.h \
38 encoding/payloads/sa_payload.c encoding/payloads/sa_payload.h \
39 encoding/payloads/traffic_selector_substructure.c encoding/payloads/traffic_selector_substructure.h \
40 encoding/payloads/transform_attribute.c encoding/payloads/transform_attribute.h \
41 encoding/payloads/transform_substructure.c encoding/payloads/transform_substructure.h \
42 encoding/payloads/ts_payload.c encoding/payloads/ts_payload.h \
43 encoding/payloads/unknown_payload.c encoding/payloads/unknown_payload.h \
44 encoding/payloads/vendor_id_payload.c encoding/payloads/vendor_id_payload.h \
45 kernel/kernel_interface.c kernel/kernel_interface.h \
46 kernel/kernel_ipsec.c kernel/kernel_ipsec.h \
47 kernel/kernel_net.h \
48 network/packet.c network/packet.h \
49 network/receiver.c network/receiver.h \
50 network/sender.c network/sender.h \
51 network/socket.h \
52 processing/jobs/job.h \
53 processing/jobs/acquire_job.c processing/jobs/acquire_job.h \
54 processing/jobs/callback_job.c processing/jobs/callback_job.h \
55 processing/jobs/delete_child_sa_job.c processing/jobs/delete_child_sa_job.h \
56 processing/jobs/delete_ike_sa_job.c processing/jobs/delete_ike_sa_job.h \
57 processing/jobs/migrate_job.c processing/jobs/migrate_job.h \
58 processing/jobs/process_message_job.c processing/jobs/process_message_job.h \
59 processing/jobs/rekey_child_sa_job.c processing/jobs/rekey_child_sa_job.h \
60 processing/jobs/rekey_ike_sa_job.c processing/jobs/rekey_ike_sa_job.h \
61 processing/jobs/retransmit_job.c processing/jobs/retransmit_job.h \
62 processing/jobs/send_dpd_job.c processing/jobs/send_dpd_job.h \
63 processing/jobs/send_keepalive_job.c processing/jobs/send_keepalive_job.h \
64 processing/jobs/roam_job.c processing/jobs/roam_job.h \
65 processing/jobs/update_sa_job.c processing/jobs/update_sa_job.h \
66 processing/scheduler.c processing/scheduler.h \
67 processing/processor.c processing/processor.h  \
68 sa/authenticators/authenticator.c sa/authenticators/authenticator.h \
69 sa/authenticators/eap_authenticator.c sa/authenticators/eap_authenticator.h \
70 sa/authenticators/eap/eap_method.c sa/authenticators/eap/eap_method.h \
71 sa/authenticators/eap/eap_manager.c sa/authenticators/eap/eap_manager.h \
72 sa/authenticators/eap/sim_manager.c sa/authenticators/eap/sim_manager.h \
73 sa/authenticators/psk_authenticator.c sa/authenticators/psk_authenticator.h \
74 sa/authenticators/pubkey_authenticator.c sa/authenticators/pubkey_authenticator.h \
75 sa/child_sa.c sa/child_sa.h \
76 sa/ike_sa.c sa/ike_sa.h \
77 sa/ike_sa_id.c sa/ike_sa_id.h \
78 sa/ike_sa_manager.c sa/ike_sa_manager.h \
79 sa/task_manager.c sa/task_manager.h \
80 sa/keymat.c sa/keymat.h \
81 sa/trap_manager.c sa/trap_manager.h \
82 sa/tasks/child_create.c sa/tasks/child_create.h \
83 sa/tasks/child_delete.c sa/tasks/child_delete.h \
84 sa/tasks/child_rekey.c sa/tasks/child_rekey.h \
85 sa/tasks/ike_auth.c sa/tasks/ike_auth.h \
86 sa/tasks/ike_cert_pre.c sa/tasks/ike_cert_pre.h \
87 sa/tasks/ike_cert_post.c sa/tasks/ike_cert_post.h \
88 sa/tasks/ike_config.c sa/tasks/ike_config.h \
89 sa/tasks/ike_delete.c sa/tasks/ike_delete.h \
90 sa/tasks/ike_dpd.c sa/tasks/ike_dpd.h \
91 sa/tasks/ike_init.c sa/tasks/ike_init.h \
92 sa/tasks/ike_natd.c sa/tasks/ike_natd.h \
93 sa/tasks/ike_mobike.c sa/tasks/ike_mobike.h \
94 sa/tasks/ike_rekey.c sa/tasks/ike_rekey.h \
95 sa/tasks/ike_reauth.c sa/tasks/ike_reauth.h \
96 sa/tasks/ike_auth_lifetime.c sa/tasks/ike_auth_lifetime.h \
97 sa/tasks/task.c sa/tasks/task.h \
98 credentials/credential_manager.c credentials/credential_manager.h \
99 credentials/sets/auth_cfg_wrapper.c credentials/sets/auth_cfg_wrapper.h \
100 credentials/sets/ocsp_response_wrapper.c credentials/sets/ocsp_response_wrapper.h \
101 credentials/sets/cert_cache.c credentials/sets/cert_cache.h \
102 credentials/credential_set.h
103
104 INCLUDES = -I${linuxdir} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/charon
105 AM_CFLAGS = -rdynamic \
106   -DIPSEC_DIR=\"${ipsecdir}\" \
107   -DIPSEC_PIDDIR=\"${piddir}\" \
108   -DIPSEC_PLUGINDIR=\"${plugindir}\" \
109   -DSTRONGSWAN_CONF=\"${strongswan_conf}\"
110 charon_LDADD = $(top_builddir)/src/libstrongswan/libstrongswan.la -lpthread -lm $(DLLIB)
111
112 # compile options
113 #################
114
115 # Use RAW socket if pluto gets built
116 if USE_PLUTO
117   charon_SOURCES += network/socket-raw.c
118 else
119   charon_SOURCES += network/socket.c
120 endif
121
122 if USE_ME
123   charon_SOURCES += encoding/payloads/endpoint_notify.c encoding/payloads/endpoint_notify.h \
124     processing/jobs/initiate_mediation_job.c processing/jobs/initiate_mediation_job.h \
125     processing/jobs/mediation_job.c processing/jobs/mediation_job.h \
126     sa/connect_manager.c sa/connect_manager.h \
127     sa/mediation_manager.c sa/mediation_manager.h \
128     sa/tasks/ike_me.c sa/tasks/ike_me.h
129 endif
130
131 if USE_CAPABILITIES
132   charon_LDADD += -lcap
133 endif
134
135
136 # build optional plugins
137 ########################
138
139 SUBDIRS = . 
140 PLUGINS = ${libstrongswan_plugins}
141
142 if USE_LOAD_TESTS
143   SUBDIRS += plugins/load_tester
144   PLUGINS += load-tester
145 endif
146
147 if USE_KERNEL_PFKEY
148   SUBDIRS += plugins/kernel_pfkey
149   PLUGINS += kernel-pfkey
150 endif
151
152 if USE_KERNEL_PFROUTE
153   SUBDIRS += plugins/kernel_pfroute
154   PLUGINS += kernel-pfroute
155 endif
156
157 if USE_KERNEL_KLIPS
158   SUBDIRS += plugins/kernel_klips
159   PLUGINS += kernel-klips
160 endif
161
162 if USE_KERNEL_NETLINK
163   SUBDIRS += plugins/kernel_netlink
164   PLUGINS += kernel-netlink
165 endif
166
167 if USE_STROKE
168   SUBDIRS += plugins/stroke
169   PLUGINS += stroke
170 endif
171
172 if USE_SMP
173   SUBDIRS += plugins/smp
174   PLUGINS += smp
175 endif
176
177 if USE_SQL
178   SUBDIRS += plugins/sql
179   PLUGINS += sql
180 endif
181
182 if USE_UPDOWN
183   SUBDIRS += plugins/updown
184   PLUGINS += updown
185 endif
186
187 if USE_ATTR
188   SUBDIRS += plugins/attr
189   PLUGINS += attr
190 endif
191
192 if USE_EAP_IDENTITY
193   SUBDIRS += plugins/eap_identity
194   PLUGINS += eapidentity
195 endif
196
197 if USE_EAP_SIM
198   SUBDIRS += plugins/eap_sim
199   PLUGINS += eapsim
200 endif
201
202 if USE_EAP_SIM_FILE
203   SUBDIRS += plugins/eap_sim_file
204   PLUGINS += eapsim-file
205 endif
206
207 if USE_EAP_MD5
208   SUBDIRS += plugins/eap_md5
209   PLUGINS += eapmd5
210 endif
211
212 if USE_EAP_GTC
213   SUBDIRS += plugins/eap_gtc
214   PLUGINS += eapgtc
215 endif
216
217 if USE_EAP_AKA
218   SUBDIRS += plugins/eap_aka
219   PLUGINS += eapaka
220 endif
221
222 if USE_EAP_MSCHAPV2
223   SUBDIRS += plugins/eap_mschapv2
224   PLUGINS += eapmschapv2
225 endif
226
227 if USE_EAP_RADIUS
228   SUBDIRS += plugins/eap_radius
229   PLUGINS += eapradius
230 endif
231
232 if USE_MEDSRV
233   SUBDIRS += plugins/medsrv
234   PLUGINS += medsrv
235 endif
236
237 if USE_MEDCLI
238   SUBDIRS += plugins/medcli
239   PLUGINS += medcli
240 endif
241
242 if USE_NM
243   SUBDIRS += plugins/nm
244   PLUGINS += nm
245 endif
246
247 if USE_RESOLV_CONF
248   SUBDIRS += plugins/resolv_conf
249   PLUGINS += resolv-conf
250 endif
251
252 if USE_UCI
253   SUBDIRS += plugins/uci
254   PLUGINS += uci
255 endif
256
257 if USE_UNIT_TESTS
258   SUBDIRS += plugins/unit_tester
259   PLUGINS += unit-tester
260 endif
261
262 AM_CFLAGS += -DPLUGINS=\""${PLUGINS}\""
263