Remove xauth_authenticator, we handle it in the task
[strongswan.git] / src / libcharon / Makefile.am
1 ipseclib_LTLIBRARIES = libcharon.la
2
3 libcharon_la_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 control/controller.c control/controller.h \
14 daemon.c daemon.h \
15 encoding/generator.c encoding/generator.h \
16 encoding/message.c encoding/message.h \
17 encoding/parser.c encoding/parser.h \
18 encoding/payloads/auth_payload.c encoding/payloads/auth_payload.h \
19 encoding/payloads/cert_payload.c encoding/payloads/cert_payload.h \
20 encoding/payloads/certreq_payload.c encoding/payloads/certreq_payload.h \
21 encoding/payloads/configuration_attribute.c encoding/payloads/configuration_attribute.h \
22 encoding/payloads/cp_payload.c encoding/payloads/cp_payload.h \
23 encoding/payloads/delete_payload.c encoding/payloads/delete_payload.h \
24 encoding/payloads/eap_payload.c encoding/payloads/eap_payload.h \
25 encoding/payloads/encodings.c encoding/payloads/encodings.h \
26 encoding/payloads/encryption_payload.c encoding/payloads/encryption_payload.h \
27 encoding/payloads/id_payload.c encoding/payloads/id_payload.h \
28 encoding/payloads/ike_header.c encoding/payloads/ike_header.h \
29 encoding/payloads/ke_payload.c  encoding/payloads/ke_payload.h \
30 encoding/payloads/nonce_payload.c encoding/payloads/nonce_payload.h \
31 encoding/payloads/notify_payload.c encoding/payloads/notify_payload.h \
32 encoding/payloads/payload.c encoding/payloads/payload.h \
33 encoding/payloads/proposal_substructure.c encoding/payloads/proposal_substructure.h \
34 encoding/payloads/sa_payload.c encoding/payloads/sa_payload.h \
35 encoding/payloads/traffic_selector_substructure.c encoding/payloads/traffic_selector_substructure.h \
36 encoding/payloads/transform_attribute.c encoding/payloads/transform_attribute.h \
37 encoding/payloads/transform_substructure.c encoding/payloads/transform_substructure.h \
38 encoding/payloads/ts_payload.c encoding/payloads/ts_payload.h \
39 encoding/payloads/unknown_payload.c encoding/payloads/unknown_payload.h \
40 encoding/payloads/vendor_id_payload.c encoding/payloads/vendor_id_payload.h \
41 encoding/payloads/hash_payload.c encoding/payloads/hash_payload.h \
42 kernel/kernel_handler.c kernel/kernel_handler.h \
43 network/receiver.c network/receiver.h network/sender.c network/sender.h \
44 network/packet.c network/packet.h network/socket.c network/socket.h \
45 network/socket_manager.c network/socket_manager.h \
46 processing/jobs/acquire_job.c processing/jobs/acquire_job.h \
47 processing/jobs/delete_child_sa_job.c processing/jobs/delete_child_sa_job.h \
48 processing/jobs/delete_ike_sa_job.c processing/jobs/delete_ike_sa_job.h \
49 processing/jobs/migrate_job.c processing/jobs/migrate_job.h \
50 processing/jobs/process_message_job.c processing/jobs/process_message_job.h \
51 processing/jobs/rekey_child_sa_job.c processing/jobs/rekey_child_sa_job.h \
52 processing/jobs/rekey_ike_sa_job.c processing/jobs/rekey_ike_sa_job.h \
53 processing/jobs/retransmit_job.c processing/jobs/retransmit_job.h \
54 processing/jobs/send_dpd_job.c processing/jobs/send_dpd_job.h \
55 processing/jobs/send_keepalive_job.c processing/jobs/send_keepalive_job.h \
56 processing/jobs/start_action_job.c processing/jobs/start_action_job.h \
57 processing/jobs/roam_job.c processing/jobs/roam_job.h \
58 processing/jobs/update_sa_job.c processing/jobs/update_sa_job.h \
59 processing/jobs/inactivity_job.c processing/jobs/inactivity_job.h \
60 sa/authenticators/authenticator.c sa/authenticators/authenticator.h \
61 sa/authenticators/eap_authenticator.c sa/authenticators/eap_authenticator.h \
62 sa/authenticators/eap/eap_method.c sa/authenticators/eap/eap_method.h \
63 sa/authenticators/eap/eap_manager.c sa/authenticators/eap/eap_manager.h \
64 sa/authenticators/psk_authenticator.c sa/authenticators/psk_authenticator.h \
65 sa/authenticators/pubkey_authenticator.c sa/authenticators/pubkey_authenticator.h \
66 sa/authenticators/psk_v1_authenticator.c sa/authenticators/psk_v1_authenticator.h \
67 sa/authenticators/pubkey_v1_authenticator.c sa/authenticators/pubkey_v1_authenticator.h \
68 sa/authenticators/xauth/xauth_method.c sa/authenticators/xauth/xauth_method.h \
69 sa/authenticators/xauth/xauth_manager.c sa/authenticators/xauth/xauth_manager.h \
70 sa/child_sa.c sa/child_sa.h \
71 sa/ike_sa.c sa/ike_sa.h \
72 sa/ike_sa_id.c sa/ike_sa_id.h \
73 sa/ike_sa_manager.c sa/ike_sa_manager.h \
74 sa/task_manager.h sa/task_manager.c sa/task_manager_v2.c sa/task_manager_v2.h \
75 sa/task_manager_v1.c sa/task_manager_v1.h \
76 sa/keymat.h sa/keymat.c sa/keymat_v2.c sa/keymat_v2.h \
77 sa/keymat_v1.c sa/keymat_v1.h \
78 sa/shunt_manager.c sa/shunt_manager.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_cert_pre_v1.c sa/tasks/ike_cert_pre_v1.h \
87 sa/tasks/ike_cert_post_v1.c sa/tasks/ike_cert_post_v1.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_natd_v1.c sa/tasks/ike_natd_v1.h \
94 sa/tasks/ike_mobike.c sa/tasks/ike_mobike.h \
95 sa/tasks/ike_rekey.c sa/tasks/ike_rekey.h \
96 sa/tasks/ike_reauth.c sa/tasks/ike_reauth.h \
97 sa/tasks/ike_auth_lifetime.c sa/tasks/ike_auth_lifetime.h \
98 sa/tasks/ike_vendor.c sa/tasks/ike_vendor.h \
99 sa/tasks/ike_vendor_v1.c sa/tasks/ike_vendor_v1.h \
100 sa/tasks/main_mode.c sa/tasks/main_mode.h \
101 sa/tasks/xauth.c sa/tasks/xauth.h \
102 sa/tasks/quick_mode.c sa/tasks/quick_mode.h \
103 sa/tasks/task.c sa/tasks/task.h
104
105
106 daemon.lo :             $(top_builddir)/config.status
107
108 INCLUDES = \
109         -I${linux_headers} \
110         -I$(top_srcdir)/src/libstrongswan \
111         -I$(top_srcdir)/src/libhydra \
112         -I$(top_srcdir)/src/libcharon
113
114 AM_CFLAGS = \
115         -DIPSEC_DIR=\"${ipsecdir}\" \
116         -DIPSEC_PIDDIR=\"${piddir}\" \
117         -DPLUGINS=\""${libcharon_plugins}\""
118
119 libcharon_la_LIBADD = -lm $(PTHREADLIB) $(DLLIB) $(SOCKLIB)
120
121 EXTRA_DIST = Android.mk
122
123 # compile options
124 #################
125
126 if USE_ME
127   libcharon_la_SOURCES += encoding/payloads/endpoint_notify.c encoding/payloads/endpoint_notify.h \
128     processing/jobs/initiate_mediation_job.c processing/jobs/initiate_mediation_job.h \
129     processing/jobs/mediation_job.c processing/jobs/mediation_job.h \
130     sa/connect_manager.c sa/connect_manager.h \
131     sa/mediation_manager.c sa/mediation_manager.h \
132     sa/tasks/ike_me.c sa/tasks/ike_me.h
133 endif
134
135 if USE_LIBCAP
136   libcharon_la_LIBADD += -lcap
137 endif
138
139 # build optional plugins
140 ########################
141
142 if MONOLITHIC
143 SUBDIRS =
144 else
145 SUBDIRS = .
146 endif
147
148 if USE_LOAD_TESTER
149   SUBDIRS += plugins/load_tester
150 if MONOLITHIC
151   libcharon_la_LIBADD += plugins/load_tester/libstrongswan-load-tester.la
152 endif
153 endif
154
155 if USE_SOCKET_DEFAULT
156   SUBDIRS += plugins/socket_default
157 if MONOLITHIC
158   libcharon_la_LIBADD += plugins/socket_default/libstrongswan-socket-default.la
159 endif
160 endif
161
162 if USE_SOCKET_RAW
163   SUBDIRS += plugins/socket_raw
164 if MONOLITHIC
165   libcharon_la_LIBADD += plugins/socket_raw/libstrongswan-socket-raw.la
166 endif
167 endif
168
169 if USE_SOCKET_DYNAMIC
170   SUBDIRS += plugins/socket_dynamic
171 if MONOLITHIC
172   libcharon_la_LIBADD += plugins/socket_dynamic/libstrongswan-socket-dynamic.la
173 endif
174 endif
175
176 if USE_FARP
177   SUBDIRS += plugins/farp
178 if MONOLITHIC
179   libcharon_la_LIBADD += plugins/farp/libstrongswan-farp.la
180 endif
181 endif
182
183 if USE_STROKE
184   SUBDIRS += plugins/stroke
185 if MONOLITHIC
186   libcharon_la_LIBADD += plugins/stroke/libstrongswan-stroke.la
187 endif
188 endif
189
190 if USE_SMP
191   SUBDIRS += plugins/smp
192 if MONOLITHIC
193   libcharon_la_LIBADD += plugins/smp/libstrongswan-smp.la
194 endif
195 endif
196
197 if USE_SQL
198   SUBDIRS += plugins/sql
199 if MONOLITHIC
200   libcharon_la_LIBADD += plugins/sql/libstrongswan-sql.la
201 endif
202 endif
203
204 if USE_UPDOWN
205   SUBDIRS += plugins/updown
206 if MONOLITHIC
207   libcharon_la_LIBADD += plugins/updown/libstrongswan-updown.la
208 endif
209 endif
210
211 if USE_EAP_IDENTITY
212   SUBDIRS += plugins/eap_identity
213 if MONOLITHIC
214   libcharon_la_LIBADD += plugins/eap_identity/libstrongswan-eap-identity.la
215 endif
216 endif
217
218 if USE_EAP_SIM
219   SUBDIRS += plugins/eap_sim
220 if MONOLITHIC
221   libcharon_la_LIBADD += plugins/eap_sim/libstrongswan-eap-sim.la
222 endif
223 endif
224
225 if USE_EAP_SIM_FILE
226   SUBDIRS += plugins/eap_sim_file
227 if MONOLITHIC
228   libcharon_la_LIBADD += plugins/eap_sim_file/libstrongswan-eap-sim-file.la
229 endif
230 endif
231
232 if USE_EAP_SIM_PCSC
233   SUBDIRS += plugins/eap_sim_pcsc
234 if MONOLITHIC
235   libcharon_la_LIBADD += plugins/eap_sim_pcsc/libstrongswan-eap-sim-pcsc.la
236 endif
237 endif
238
239 if USE_EAP_SIMAKA_SQL
240   SUBDIRS += plugins/eap_simaka_sql
241 if MONOLITHIC
242   libcharon_la_LIBADD += plugins/eap_simaka_sql/libstrongswan-eap-simaka-sql.la
243 endif
244 endif
245
246 if USE_EAP_SIMAKA_PSEUDONYM
247   SUBDIRS += plugins/eap_simaka_pseudonym
248 if MONOLITHIC
249   libcharon_la_LIBADD += plugins/eap_simaka_pseudonym/libstrongswan-eap-simaka-pseudonym.la
250 endif
251 endif
252
253 if USE_EAP_SIMAKA_REAUTH
254   SUBDIRS += plugins/eap_simaka_reauth
255 if MONOLITHIC
256   libcharon_la_LIBADD += plugins/eap_simaka_reauth/libstrongswan-eap-simaka-reauth.la
257 endif
258 endif
259
260 if USE_EAP_AKA
261   SUBDIRS += plugins/eap_aka
262 if MONOLITHIC
263   libcharon_la_LIBADD += plugins/eap_aka/libstrongswan-eap-aka.la
264 endif
265 endif
266
267 if USE_EAP_AKA_3GPP2
268   SUBDIRS += plugins/eap_aka_3gpp2
269 if MONOLITHIC
270   libcharon_la_LIBADD += plugins/eap_aka_3gpp2/libstrongswan-eap-aka-3gpp2.la
271 endif
272 endif
273
274 if USE_SIMAKA
275 if MONOLITHIC
276   # otherwise this library is linked to both the eap_aka and the eap_sim plugin
277   libcharon_la_LIBADD += $(top_builddir)/src/libsimaka/libsimaka.la
278 endif
279 endif
280
281 if USE_EAP_MD5
282   SUBDIRS += plugins/eap_md5
283 if MONOLITHIC
284   libcharon_la_LIBADD += plugins/eap_md5/libstrongswan-eap-md5.la
285 endif
286 endif
287
288 if USE_EAP_GTC
289   SUBDIRS += plugins/eap_gtc
290 if MONOLITHIC
291   libcharon_la_LIBADD += plugins/eap_gtc/libstrongswan-eap-gtc.la
292 endif
293 endif
294
295 if USE_EAP_MSCHAPV2
296   SUBDIRS += plugins/eap_mschapv2
297 if MONOLITHIC
298   libcharon_la_LIBADD += plugins/eap_mschapv2/libstrongswan-eap-mschapv2.la
299 endif
300 endif
301
302 if USE_EAP_RADIUS
303   SUBDIRS += plugins/eap_radius
304 if MONOLITHIC
305   libcharon_la_LIBADD += plugins/eap_radius/libstrongswan-eap-radius.la
306 endif
307 endif
308
309 if USE_EAP_TLS
310   SUBDIRS += plugins/eap_tls
311 if MONOLITHIC
312   libcharon_la_LIBADD += plugins/eap_tls/libstrongswan-eap-tls.la
313 endif
314 endif
315
316 if USE_EAP_TTLS
317   SUBDIRS += plugins/eap_ttls
318 if MONOLITHIC
319   libcharon_la_LIBADD += plugins/eap_ttls/libstrongswan-eap-ttls.la
320 endif
321 endif
322
323 if USE_EAP_PEAP
324   SUBDIRS += plugins/eap_peap
325 if MONOLITHIC
326   libcharon_la_LIBADD += plugins/eap_peap/libstrongswan-eap-peap.la
327 endif
328 endif
329
330 if USE_EAP_TNC
331   SUBDIRS += plugins/eap_tnc
332 if MONOLITHIC
333   libcharon_la_LIBADD += plugins/eap_tnc/libstrongswan-eap-tnc.la
334 endif
335 endif
336
337 if USE_TLS
338 if MONOLITHIC
339   # otherwise this library is linked to eap_tls
340   libcharon_la_LIBADD += $(top_builddir)/src/libtls/libtls.la
341 endif
342 endif
343
344 if USE_TNC_IFMAP
345   SUBDIRS += plugins/tnc_ifmap
346 if MONOLITHIC
347   libcharon_la_LIBADD += plugins/tnc_ifmap/libstrongswan-tnc-ifmap.la
348 endif
349 endif
350
351 if USE_TNC_IMC
352   SUBDIRS += plugins/tnc_imc
353 if MONOLITHIC
354   libcharon_la_LIBADD += plugins/tnc_imc/libstrongswan-tnc-imc.la
355 endif
356 endif
357
358 if USE_TNC_IMV
359   SUBDIRS += plugins/tnc_imv
360 if MONOLITHIC
361   libcharon_la_LIBADD += plugins/tnc_imv/libstrongswan-tnc-imv.la
362 endif
363 endif
364
365 if USE_TNC_TNCCS
366   SUBDIRS += plugins/tnc_tnccs
367 if MONOLITHIC
368   libcharon_la_LIBADD += plugins/tnc_tnccs/libstrongswan-tnc-tnccs.la
369 endif
370 endif
371
372 if USE_TNCCS_11
373   SUBDIRS += plugins/tnccs_11
374 if MONOLITHIC
375   libcharon_la_LIBADD += plugins/tnccs_11/libstrongswan-tnccs-11.la
376 endif
377 endif
378
379 if USE_TNCCS_20
380   SUBDIRS += plugins/tnccs_20
381 if MONOLITHIC
382   libcharon_la_LIBADD += plugins/tnccs_20/libstrongswan-tnccs-20.la
383 endif
384 endif
385
386 if USE_TNCCS_DYNAMIC
387   SUBDIRS += plugins/tnccs_dynamic
388 if MONOLITHIC
389   libcharon_la_LIBADD += plugins/tnccs_dynamic/libstrongswan-tnccs-dynamic.la
390 endif
391 endif
392
393 if USE_LIBTNCCS
394 if MONOLITHIC
395   # otherwise this library is linked to the respective plugins
396   libcharon_la_LIBADD += $(top_builddir)/src/libtnccs/libtnccs.la
397 endif
398 endif
399
400 if USE_MEDSRV
401   SUBDIRS += plugins/medsrv
402 if MONOLITHIC
403   libcharon_la_LIBADD += plugins/medsrv/libstrongswan-medsrv.la
404 endif
405 endif
406
407 if USE_MEDCLI
408   SUBDIRS += plugins/medcli
409 if MONOLITHIC
410   libcharon_la_LIBADD += plugins/medcli/libstrongswan-medcli.la
411 endif
412 endif
413
414 if USE_NM
415   SUBDIRS += plugins/nm
416 if MONOLITHIC
417   libcharon_la_LIBADD += plugins/nm/libstrongswan-nm.la
418 endif
419 endif
420
421 if USE_DHCP
422   SUBDIRS += plugins/dhcp
423 if MONOLITHIC
424   libcharon_la_LIBADD += plugins/dhcp/libstrongswan-dhcp.la
425 endif
426 endif
427
428 if USE_ANDROID
429   SUBDIRS += plugins/android
430 if MONOLITHIC
431   libcharon_la_LIBADD += plugins/android/libstrongswan-android.la
432 endif
433 endif
434
435 if USE_MAEMO
436   SUBDIRS += plugins/maemo
437 if MONOLITHIC
438   libcharon_la_LIBADD += plugins/maemo/libstrongswan-maemo.la
439 endif
440 endif
441
442 if USE_HA
443   SUBDIRS += plugins/ha
444 if MONOLITHIC
445   libcharon_la_LIBADD += plugins/ha/libstrongswan-ha.la
446 endif
447 endif
448
449 if USE_WHITELIST
450   SUBDIRS += plugins/whitelist
451 if MONOLITHIC
452   libcharon_la_LIBADD += plugins/whitelist/libstrongswan-whitelist.la
453 endif
454 endif
455
456 if USE_CERTEXPIRE
457   SUBDIRS += plugins/certexpire
458 if MONOLITHIC
459   libcharon_la_LIBADD += plugins/certexpire/libstrongswan-certexpire.la
460 endif
461 endif
462
463 if USE_LED
464   SUBDIRS += plugins/led
465 if MONOLITHIC
466   libcharon_la_LIBADD += plugins/led/libstrongswan-led.la
467 endif
468 endif
469
470 if USE_DUPLICHECK
471   SUBDIRS += plugins/duplicheck
472 if MONOLITHIC
473   libcharon_la_LIBADD += plugins/duplicheck/libstrongswan-duplicheck.la
474 endif
475 endif
476
477 if USE_COUPLING
478   SUBDIRS += plugins/coupling
479 if MONOLITHIC
480   libcharon_la_LIBADD += plugins/coupling/libstrongswan-coupling.la
481 endif
482 endif
483
484 if USE_UCI
485   SUBDIRS += plugins/uci
486 if MONOLITHIC
487   libcharon_la_LIBADD += plugins/uci/libstrongswan-uci.la
488 endif
489 endif
490
491 if USE_ADDRBLOCK
492   SUBDIRS += plugins/addrblock
493 if MONOLITHIC
494   libcharon_la_LIBADD += plugins/uci/libstrongswan-addrblock.la
495 endif
496 endif
497
498 if USE_UNIT_TESTS
499   SUBDIRS += plugins/unit_tester
500 if MONOLITHIC
501   libcharon_la_LIBADD += plugins/unit_tester/libstrongswan-unit-tester.la
502 endif
503 endif
504
505 if USE_XAUTH_NULL
506   SUBDIRS += plugins/xauth_null
507 if MONOLITHIC
508   libcharon_la_LIBADD += plugins/xauth_null/libstrongswan-xauth-null.la
509 endif
510 endif