Removed strayed code fragment
[strongswan.git] / src / charon / Makefile.am
1 ipsec_PROGRAMS = charon
2
3 charon_SOURCES = \
4 bus/bus.c bus/bus.h \
5 bus/listeners/listener.h \
6 bus/listeners/file_logger.c bus/listeners/file_logger.h \
7 bus/listeners/sys_logger.c bus/listeners/sys_logger.h \
8 config/backend_manager.c config/backend_manager.h config/backend.h \
9 config/child_cfg.c config/child_cfg.h \
10 config/ike_cfg.c config/ike_cfg.h \
11 config/peer_cfg.c config/peer_cfg.h \
12 config/proposal.c config/proposal.h \
13 config/auth_cfg.c config/auth_cfg.h \
14 control/controller.c control/controller.h \
15 daemon.c daemon.h \
16 encoding/generator.c encoding/generator.h \
17 encoding/message.c encoding/message.h \
18 encoding/parser.c encoding/parser.h \
19 encoding/payloads/auth_payload.c encoding/payloads/auth_payload.h \
20 encoding/payloads/cert_payload.c encoding/payloads/cert_payload.h \
21 encoding/payloads/certreq_payload.c encoding/payloads/certreq_payload.h \
22 encoding/payloads/configuration_attribute.c encoding/payloads/configuration_attribute.h \
23 encoding/payloads/cp_payload.c encoding/payloads/cp_payload.h \
24 encoding/payloads/delete_payload.c encoding/payloads/delete_payload.h \
25 encoding/payloads/eap_payload.c encoding/payloads/eap_payload.h \
26 encoding/payloads/encodings.c encoding/payloads/encodings.h \
27 encoding/payloads/encryption_payload.c encoding/payloads/encryption_payload.h \
28 encoding/payloads/id_payload.c encoding/payloads/id_payload.h \
29 encoding/payloads/ike_header.c encoding/payloads/ike_header.h \
30 encoding/payloads/ke_payload.c  encoding/payloads/ke_payload.h \
31 encoding/payloads/nonce_payload.c encoding/payloads/nonce_payload.h \
32 encoding/payloads/notify_payload.c encoding/payloads/notify_payload.h \
33 encoding/payloads/payload.c encoding/payloads/payload.h \
34 encoding/payloads/proposal_substructure.c encoding/payloads/proposal_substructure.h \
35 encoding/payloads/sa_payload.c encoding/payloads/sa_payload.h \
36 encoding/payloads/traffic_selector_substructure.c encoding/payloads/traffic_selector_substructure.h \
37 encoding/payloads/transform_attribute.c encoding/payloads/transform_attribute.h \
38 encoding/payloads/transform_substructure.c encoding/payloads/transform_substructure.h \
39 encoding/payloads/ts_payload.c encoding/payloads/ts_payload.h \
40 encoding/payloads/unknown_payload.c encoding/payloads/unknown_payload.h \
41 encoding/payloads/vendor_id_payload.c encoding/payloads/vendor_id_payload.h \
42 kernel/kernel_interface.c kernel/kernel_interface.h \
43 kernel/kernel_ipsec.c kernel/kernel_ipsec.h \
44 kernel/kernel_net.h \
45 network/packet.c network/packet.h \
46 network/receiver.c network/receiver.h \
47 network/sender.c network/sender.h \
48 network/socket_manager.c network/socket_manager.h network/socket.h \
49 processing/jobs/job.h \
50 processing/jobs/acquire_job.c processing/jobs/acquire_job.h \
51 processing/jobs/callback_job.c processing/jobs/callback_job.h \
52 processing/jobs/delete_child_sa_job.c processing/jobs/delete_child_sa_job.h \
53 processing/jobs/delete_ike_sa_job.c processing/jobs/delete_ike_sa_job.h \
54 processing/jobs/migrate_job.c processing/jobs/migrate_job.h \
55 processing/jobs/process_message_job.c processing/jobs/process_message_job.h \
56 processing/jobs/rekey_child_sa_job.c processing/jobs/rekey_child_sa_job.h \
57 processing/jobs/rekey_ike_sa_job.c processing/jobs/rekey_ike_sa_job.h \
58 processing/jobs/retransmit_job.c processing/jobs/retransmit_job.h \
59 processing/jobs/send_dpd_job.c processing/jobs/send_dpd_job.h \
60 processing/jobs/send_keepalive_job.c processing/jobs/send_keepalive_job.h \
61 processing/jobs/roam_job.c processing/jobs/roam_job.h \
62 processing/jobs/update_sa_job.c processing/jobs/update_sa_job.h \
63 processing/jobs/inactivity_job.c processing/jobs/inactivity_job.h \
64 processing/scheduler.c processing/scheduler.h \
65 processing/processor.c processing/processor.h  \
66 sa/authenticators/authenticator.c sa/authenticators/authenticator.h \
67 sa/authenticators/eap_authenticator.c sa/authenticators/eap_authenticator.h \
68 sa/authenticators/eap/eap_method.c sa/authenticators/eap/eap_method.h \
69 sa/authenticators/eap/eap_manager.c sa/authenticators/eap/eap_manager.h \
70 sa/authenticators/eap/sim_manager.c sa/authenticators/eap/sim_manager.h \
71 sa/authenticators/psk_authenticator.c sa/authenticators/psk_authenticator.h \
72 sa/authenticators/pubkey_authenticator.c sa/authenticators/pubkey_authenticator.h \
73 sa/child_sa.c sa/child_sa.h \
74 sa/ike_sa.c sa/ike_sa.h \
75 sa/ike_sa_id.c sa/ike_sa_id.h \
76 sa/ike_sa_manager.c sa/ike_sa_manager.h \
77 sa/task_manager.c sa/task_manager.h \
78 sa/keymat.c sa/keymat.h \
79 sa/trap_manager.c sa/trap_manager.h \
80 sa/tasks/child_create.c sa/tasks/child_create.h \
81 sa/tasks/child_delete.c sa/tasks/child_delete.h \
82 sa/tasks/child_rekey.c sa/tasks/child_rekey.h \
83 sa/tasks/ike_auth.c sa/tasks/ike_auth.h \
84 sa/tasks/ike_cert_pre.c sa/tasks/ike_cert_pre.h \
85 sa/tasks/ike_cert_post.c sa/tasks/ike_cert_post.h \
86 sa/tasks/ike_config.c sa/tasks/ike_config.h \
87 sa/tasks/ike_delete.c sa/tasks/ike_delete.h \
88 sa/tasks/ike_dpd.c sa/tasks/ike_dpd.h \
89 sa/tasks/ike_init.c sa/tasks/ike_init.h \
90 sa/tasks/ike_natd.c sa/tasks/ike_natd.h \
91 sa/tasks/ike_mobike.c sa/tasks/ike_mobike.h \
92 sa/tasks/ike_rekey.c sa/tasks/ike_rekey.h \
93 sa/tasks/ike_reauth.c sa/tasks/ike_reauth.h \
94 sa/tasks/ike_auth_lifetime.c sa/tasks/ike_auth_lifetime.h \
95 sa/tasks/ike_vendor.c sa/tasks/ike_vendor.h \
96 sa/tasks/task.c sa/tasks/task.h \
97 credentials/credential_manager.c credentials/credential_manager.h \
98 credentials/sets/auth_cfg_wrapper.c credentials/sets/auth_cfg_wrapper.h \
99 credentials/sets/ocsp_response_wrapper.c credentials/sets/ocsp_response_wrapper.h \
100 credentials/sets/cert_cache.c credentials/sets/cert_cache.h \
101 credentials/credential_set.h
102
103 INCLUDES = -I${linux_headers} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/charon
104 AM_CFLAGS = -rdynamic \
105   -DIPSEC_DIR=\"${ipsecdir}\" \
106   -DIPSEC_PIDDIR=\"${piddir}\"
107 charon_LDADD = $(top_builddir)/src/libstrongswan/libstrongswan.la -lm $(PTHREADLIB) $(DLLIB) $(SOCKLIB)
108
109 EXTRA_DIST = Android.mk
110
111 # compile options
112 #################
113
114 if USE_ME
115   charon_SOURCES += encoding/payloads/endpoint_notify.c encoding/payloads/endpoint_notify.h \
116     processing/jobs/initiate_mediation_job.c processing/jobs/initiate_mediation_job.h \
117     processing/jobs/mediation_job.c processing/jobs/mediation_job.h \
118     sa/connect_manager.c sa/connect_manager.h \
119     sa/mediation_manager.c sa/mediation_manager.h \
120     sa/tasks/ike_me.c sa/tasks/ike_me.h
121 endif
122
123 if USE_CAPABILITIES
124   charon_LDADD += -lcap
125 endif
126
127 if MONOLITHIC
128     lib_LTLIBRARIES = libcharon.la
129     charon_LDADD += $(top_builddir)/src/charon/libcharon.la
130     libcharon_la_SOURCES =
131     libcharon_la_LIBADD =
132 endif
133
134 # build optional plugins
135 ########################
136
137 SUBDIRS =
138 PLUGINS = ${libstrongswan_plugins}
139
140 if USE_LOAD_TESTER
141   SUBDIRS += plugins/load_tester
142   PLUGINS += load-tester
143 if MONOLITHIC
144   libcharon_la_LIBADD += plugins/load_tester/libstrongswan-load-tester.la
145 endif
146 endif
147
148 if USE_KERNEL_PFKEY
149   SUBDIRS += plugins/kernel_pfkey
150   PLUGINS += kernel-pfkey
151 if MONOLITHIC
152   libcharon_la_LIBADD += plugins/kernel_pfkey/libstrongswan-kernel-pfkey.la
153 endif
154 endif
155
156 if USE_KERNEL_PFROUTE
157   SUBDIRS += plugins/kernel_pfroute
158   PLUGINS += kernel-pfroute
159 if MONOLITHIC
160   libcharon_la_LIBADD += plugins/kernel_pfroute/libstrongswan-kernel-pfroute.la
161 endif
162 endif
163
164 if USE_KERNEL_KLIPS
165   SUBDIRS += plugins/kernel_klips
166   PLUGINS += kernel-klips
167 if MONOLITHIC
168   libcharon_la_LIBADD += plugins/kernel_klips/libstrongswan-kernel-klips.la
169 endif
170 endif
171
172 if USE_KERNEL_NETLINK
173   SUBDIRS += plugins/kernel_netlink
174   PLUGINS += kernel-netlink
175 if MONOLITHIC
176   libcharon_la_LIBADD += plugins/kernel_netlink/libstrongswan-kernel-netlink.la
177 endif
178 endif
179
180 if USE_SOCKET_DEFAULT
181   SUBDIRS += plugins/socket_default
182   PLUGINS += socket-default
183 if MONOLITHIC
184   libcharon_la_LIBADD += plugins/socket_default/libstrongswan-socket-default.la
185 endif
186 endif
187
188 if USE_SOCKET_RAW
189   SUBDIRS += plugins/socket_raw
190   PLUGINS += socket-raw
191 if MONOLITHIC
192   libcharon_la_LIBADD += plugins/socket_raw/libstrongswan-socket-raw.la
193 endif
194 endif
195
196 if USE_SOCKET_DYNAMIC
197   SUBDIRS += plugins/socket_dynamic
198   PLUGINS += socket-dynamic
199 if MONOLITHIC
200   libcharon_la_LIBADD += plugins/socket_dynamic/libstrongswan-socket-dynamic.la
201 endif
202 endif
203
204 if USE_STROKE
205   SUBDIRS += plugins/stroke
206   PLUGINS += stroke
207 if MONOLITHIC
208   libcharon_la_LIBADD += plugins/stroke/libstrongswan-stroke.la
209 endif
210 endif
211
212 if USE_SMP
213   SUBDIRS += plugins/smp
214   PLUGINS += smp
215 if MONOLITHIC
216   libcharon_la_LIBADD += plugins/smp/libstrongswan-smp.la
217 endif
218 endif
219
220 if USE_SQL
221   SUBDIRS += plugins/sql
222   PLUGINS += sql
223 if MONOLITHIC
224   libcharon_la_LIBADD += plugins/sql/libstrongswan-sql.la
225 endif
226 endif
227
228 if USE_UPDOWN
229   SUBDIRS += plugins/updown
230   PLUGINS += updown
231 if MONOLITHIC
232   libcharon_la_LIBADD += plugins/updown/libstrongswan-updown.la
233 endif
234 endif
235
236 if USE_ATTR
237   SUBDIRS += plugins/attr
238   PLUGINS += attr
239 if MONOLITHIC
240   libcharon_la_LIBADD += plugins/attr/libstrongswan-attr.la
241 endif
242 endif
243
244 if USE_EAP_IDENTITY
245   SUBDIRS += plugins/eap_identity
246   PLUGINS += eap-identity
247 if MONOLITHIC
248   libcharon_la_LIBADD += plugins/eap_identity/libstrongswan-eap-identity.la
249 endif
250 endif
251
252 if USE_EAP_SIM
253   SUBDIRS += plugins/eap_sim
254   PLUGINS += eap-sim
255 if MONOLITHIC
256   libcharon_la_LIBADD += plugins/eap_sim/libstrongswan-eap-sim.la
257 endif
258 endif
259
260 if USE_EAP_SIM_FILE
261   SUBDIRS += plugins/eap_sim_file
262   PLUGINS += eap-sim-file
263 if MONOLITHIC
264   libcharon_la_LIBADD += plugins/eap_sim_file/libstrongswan-eap-sim-file.la
265 endif
266 endif
267
268 if USE_EAP_SIMAKA_PSEUDONYM
269   SUBDIRS += plugins/eap_simaka_pseudonym
270   PLUGINS += eap-simaka-pseudonym
271 if MONOLITHIC
272   libcharon_la_LIBADD += plugins/eap_simaka_pseudonym/libstrongswan-eap-simaka-pseudonym.la
273 endif
274 endif
275
276 if USE_EAP_SIMAKA_REAUTH
277   SUBDIRS += plugins/eap_simaka_reauth
278   PLUGINS += eap-simaka-reauth
279 if MONOLITHIC
280   libcharon_la_LIBADD += plugins/eap_simaka_reauth/libstrongswan-eap-simaka-reauth.la
281 endif
282 endif
283
284 if USE_EAP_AKA
285   SUBDIRS += plugins/eap_aka
286   PLUGINS += eap-aka
287 if MONOLITHIC
288   libcharon_la_LIBADD += plugins/eap_aka/libstrongswan-eap-aka.la
289 endif
290 endif
291
292 if USE_EAP_AKA_3GPP2
293   SUBDIRS += plugins/eap_aka_3gpp2
294   PLUGINS += eap-aka-3gpp2
295 if MONOLITHIC
296   libcharon_la_LIBADD += plugins/eap_aka_3gpp2/libstrongswan-eap-aka-3gpp2.la
297 endif
298 endif
299
300 if USE_SIMAKA
301 if MONOLITHIC
302   # otherwise this library is linked to both the eap_aka and the eap_sim plugin
303   libcharon_la_LIBADD += $(top_builddir)/src/libsimaka/libsimaka.la
304 endif
305 endif
306
307 if USE_EAP_MD5
308   SUBDIRS += plugins/eap_md5
309   PLUGINS += eap-md5
310 if MONOLITHIC
311   libcharon_la_LIBADD += plugins/eap_md5/libstrongswan-eap-md5.la
312 endif
313 endif
314
315 if USE_EAP_GTC
316   SUBDIRS += plugins/eap_gtc
317   PLUGINS += eap-gtc
318 if MONOLITHIC
319   libcharon_la_LIBADD += plugins/eap_gtc/libstrongswan-eap-gtc.la
320 endif
321 endif
322
323 if USE_EAP_MSCHAPV2
324   SUBDIRS += plugins/eap_mschapv2
325   PLUGINS += eap-mschapv2
326 if MONOLITHIC
327   libcharon_la_LIBADD += plugins/eap_mschapv2/libstrongswan-eap-mschapv2.la
328 endif
329 endif
330
331 if USE_EAP_RADIUS
332   SUBDIRS += plugins/eap_radius
333   PLUGINS += eap-radius
334 if MONOLITHIC
335   libcharon_la_LIBADD += plugins/eap_radius/libstrongswan-eap-radius.la
336 endif
337 endif
338
339 if USE_MEDSRV
340   SUBDIRS += plugins/medsrv
341   PLUGINS += medsrv
342 if MONOLITHIC
343   libcharon_la_LIBADD += plugins/medsrv/libstrongswan-medsrv.la
344 endif
345 endif
346
347 if USE_MEDCLI
348   SUBDIRS += plugins/medcli
349   PLUGINS += medcli
350 if MONOLITHIC
351   libcharon_la_LIBADD += plugins/medcli/libstrongswan-medcli.la
352 endif
353 endif
354
355 if USE_NM
356   SUBDIRS += plugins/nm
357   PLUGINS += nm
358 if MONOLITHIC
359   libcharon_la_LIBADD += plugins/nm/libstrongswan-nm.la
360 endif
361 endif
362
363 if USE_RESOLVE
364   SUBDIRS += plugins/resolve
365   PLUGINS += resolve
366 if MONOLITHIC
367   libcharon_la_LIBADD += plugins/resolve/libstrongswan-resolve.la
368 endif
369 endif
370
371 if USE_ANDROID
372   SUBDIRS += plugins/android
373   PLUGINS += android
374 if MONOLITHIC
375   libcharon_la_LIBADD += plugins/android/libstrongswan-android.la
376 endif
377 endif
378
379 if USE_UCI
380   SUBDIRS += plugins/uci
381   PLUGINS += uci
382 if MONOLITHIC
383   libcharon_la_LIBADD += plugins/uci/libstrongswan-uci.la
384 endif
385 endif
386
387 if USE_UNIT_TESTS
388   SUBDIRS += plugins/unit_tester
389   PLUGINS += unit-tester
390 if MONOLITHIC
391   libcharon_la_LIBADD += plugins/unit_tester/libstrongswan-unit-tester.la
392 endif
393 endif
394
395 AM_CFLAGS += -DPLUGINS=\""${PLUGINS}\""
396