Merge branch 'android-fixes'
[strongswan.git] / src / libcharon / Makefile.am
1 ipseclib_LTLIBRARIES = libcharon.la
2
3 libcharon_la_SOURCES = \
4 attributes/attributes.c attributes/attributes.h \
5 attributes/attribute_provider.h attributes/attribute_handler.h \
6 attributes/attribute_manager.c attributes/attribute_manager.h \
7 attributes/mem_pool.c attributes/mem_pool.h \
8 bus/bus.c bus/bus.h \
9 bus/listeners/listener.h \
10 bus/listeners/logger.h \
11 bus/listeners/custom_logger.h \
12 bus/listeners/file_logger.c bus/listeners/file_logger.h \
13 config/backend_manager.c config/backend_manager.h config/backend.h \
14 config/child_cfg.c config/child_cfg.h \
15 config/ike_cfg.c config/ike_cfg.h \
16 config/peer_cfg.c config/peer_cfg.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/encrypted_payload.c encoding/payloads/encrypted_payload.h \
31 encoding/payloads/encrypted_fragment_payload.h \
32 encoding/payloads/id_payload.c encoding/payloads/id_payload.h \
33 encoding/payloads/ike_header.c encoding/payloads/ike_header.h \
34 encoding/payloads/ke_payload.c  encoding/payloads/ke_payload.h \
35 encoding/payloads/nonce_payload.c encoding/payloads/nonce_payload.h \
36 encoding/payloads/notify_payload.c encoding/payloads/notify_payload.h \
37 encoding/payloads/payload.c encoding/payloads/payload.h \
38 encoding/payloads/proposal_substructure.c encoding/payloads/proposal_substructure.h \
39 encoding/payloads/sa_payload.c encoding/payloads/sa_payload.h \
40 encoding/payloads/traffic_selector_substructure.c encoding/payloads/traffic_selector_substructure.h \
41 encoding/payloads/transform_attribute.c encoding/payloads/transform_attribute.h \
42 encoding/payloads/transform_substructure.c encoding/payloads/transform_substructure.h \
43 encoding/payloads/ts_payload.c encoding/payloads/ts_payload.h \
44 encoding/payloads/unknown_payload.c encoding/payloads/unknown_payload.h \
45 encoding/payloads/vendor_id_payload.c encoding/payloads/vendor_id_payload.h \
46 encoding/payloads/hash_payload.c encoding/payloads/hash_payload.h \
47 encoding/payloads/fragment_payload.c encoding/payloads/fragment_payload.h \
48 kernel/kernel_interface.c kernel/kernel_interface.h \
49 kernel/kernel_ipsec.c kernel/kernel_ipsec.h \
50 kernel/kernel_net.c kernel/kernel_net.h \
51 kernel/kernel_listener.h kernel/kernel_handler.c kernel/kernel_handler.h \
52 network/receiver.c network/receiver.h network/sender.c network/sender.h \
53 network/socket.c network/socket.h \
54 network/socket_manager.c network/socket_manager.h \
55 processing/jobs/acquire_job.c processing/jobs/acquire_job.h \
56 processing/jobs/delete_child_sa_job.c processing/jobs/delete_child_sa_job.h \
57 processing/jobs/delete_ike_sa_job.c processing/jobs/delete_ike_sa_job.h \
58 processing/jobs/migrate_job.c processing/jobs/migrate_job.h \
59 processing/jobs/process_message_job.c processing/jobs/process_message_job.h \
60 processing/jobs/redirect_job.c processing/jobs/redirect_job.h \
61 processing/jobs/rekey_child_sa_job.c processing/jobs/rekey_child_sa_job.h \
62 processing/jobs/rekey_ike_sa_job.c processing/jobs/rekey_ike_sa_job.h \
63 processing/jobs/retransmit_job.c processing/jobs/retransmit_job.h \
64 processing/jobs/retry_initiate_job.c processing/jobs/retry_initiate_job.h \
65 processing/jobs/send_dpd_job.c processing/jobs/send_dpd_job.h \
66 processing/jobs/send_keepalive_job.c processing/jobs/send_keepalive_job.h \
67 processing/jobs/start_action_job.c processing/jobs/start_action_job.h \
68 processing/jobs/roam_job.c processing/jobs/roam_job.h \
69 processing/jobs/update_sa_job.c processing/jobs/update_sa_job.h \
70 processing/jobs/inactivity_job.c processing/jobs/inactivity_job.h \
71 processing/jobs/initiate_tasks_job.c processing/jobs/initiate_tasks_job.h \
72 sa/eap/eap_method.c sa/eap/eap_method.h sa/eap/eap_inner_method.h \
73 sa/eap/eap_manager.c sa/eap/eap_manager.h \
74 sa/xauth/xauth_method.c sa/xauth/xauth_method.h \
75 sa/xauth/xauth_manager.c sa/xauth/xauth_manager.h \
76 sa/authenticator.c sa/authenticator.h \
77 sa/child_sa.c sa/child_sa.h \
78 sa/ike_sa.c sa/ike_sa.h \
79 sa/ike_sa_id.c sa/ike_sa_id.h \
80 sa/keymat.h sa/keymat.c \
81 sa/ike_sa_manager.c sa/ike_sa_manager.h \
82 sa/child_sa_manager.c sa/child_sa_manager.h \
83 sa/task_manager.h sa/task_manager.c \
84 sa/shunt_manager.c sa/shunt_manager.h \
85 sa/trap_manager.c sa/trap_manager.h \
86 sa/redirect_provider.h sa/redirect_manager.c sa/redirect_manager.h \
87 sa/task.c sa/task.h
88
89 if USE_IKEV2
90 libcharon_la_SOURCES += \
91 sa/ikev2/keymat_v2.c sa/ikev2/keymat_v2.h \
92 sa/ikev2/task_manager_v2.c sa/ikev2/task_manager_v2.h \
93 sa/ikev2/authenticators/eap_authenticator.c sa/ikev2/authenticators/eap_authenticator.h \
94 sa/ikev2/authenticators/psk_authenticator.c sa/ikev2/authenticators/psk_authenticator.h \
95 sa/ikev2/authenticators/pubkey_authenticator.c sa/ikev2/authenticators/pubkey_authenticator.h \
96 sa/ikev2/tasks/child_create.c sa/ikev2/tasks/child_create.h \
97 sa/ikev2/tasks/child_delete.c sa/ikev2/tasks/child_delete.h \
98 sa/ikev2/tasks/child_rekey.c sa/ikev2/tasks/child_rekey.h \
99 sa/ikev2/tasks/ike_auth.c sa/ikev2/tasks/ike_auth.h \
100 sa/ikev2/tasks/ike_cert_pre.c sa/ikev2/tasks/ike_cert_pre.h \
101 sa/ikev2/tasks/ike_cert_post.c sa/ikev2/tasks/ike_cert_post.h \
102 sa/ikev2/tasks/ike_config.c sa/ikev2/tasks/ike_config.h \
103 sa/ikev2/tasks/ike_delete.c sa/ikev2/tasks/ike_delete.h \
104 sa/ikev2/tasks/ike_dpd.c sa/ikev2/tasks/ike_dpd.h \
105 sa/ikev2/tasks/ike_init.c sa/ikev2/tasks/ike_init.h \
106 sa/ikev2/tasks/ike_natd.c sa/ikev2/tasks/ike_natd.h \
107 sa/ikev2/tasks/ike_mid_sync.c sa/ikev2/tasks/ike_mid_sync.h \
108 sa/ikev2/tasks/ike_mobike.c sa/ikev2/tasks/ike_mobike.h \
109 sa/ikev2/tasks/ike_rekey.c sa/ikev2/tasks/ike_rekey.h \
110 sa/ikev2/tasks/ike_reauth.c sa/ikev2/tasks/ike_reauth.h \
111 sa/ikev2/tasks/ike_reauth_complete.c sa/ikev2/tasks/ike_reauth_complete.h \
112 sa/ikev2/tasks/ike_redirect.c sa/ikev2/tasks/ike_redirect.h \
113 sa/ikev2/tasks/ike_auth_lifetime.c sa/ikev2/tasks/ike_auth_lifetime.h \
114 sa/ikev2/tasks/ike_vendor.c sa/ikev2/tasks/ike_vendor.h \
115 sa/ikev2/tasks/ike_verify_peer_cert.c sa/ikev2/tasks/ike_verify_peer_cert.h
116 endif
117
118 if USE_IKEV1
119 libcharon_la_SOURCES += \
120 sa/ikev1/keymat_v1.c sa/ikev1/keymat_v1.h \
121 sa/ikev1/iv_manager.c sa/ikev1/iv_manager.h \
122 sa/ikev1/task_manager_v1.c sa/ikev1/task_manager_v1.h \
123 sa/ikev1/authenticators/psk_v1_authenticator.c sa/ikev1/authenticators/psk_v1_authenticator.h \
124 sa/ikev1/authenticators/pubkey_v1_authenticator.c sa/ikev1/authenticators/pubkey_v1_authenticator.h \
125 sa/ikev1/authenticators/hybrid_authenticator.c sa/ikev1/authenticators/hybrid_authenticator.h \
126 sa/ikev1/phase1.c sa/ikev1/phase1.h \
127 sa/ikev1/tasks/main_mode.c sa/ikev1/tasks/main_mode.h \
128 sa/ikev1/tasks/aggressive_mode.c sa/ikev1/tasks/aggressive_mode.h \
129 sa/ikev1/tasks/informational.c sa/ikev1/tasks/informational.h \
130 sa/ikev1/tasks/isakmp_cert_pre.c sa/ikev1/tasks/isakmp_cert_pre.h \
131 sa/ikev1/tasks/isakmp_cert_post.c sa/ikev1/tasks/isakmp_cert_post.h \
132 sa/ikev1/tasks/isakmp_natd.c sa/ikev1/tasks/isakmp_natd.h \
133 sa/ikev1/tasks/isakmp_vendor.c sa/ikev1/tasks/isakmp_vendor.h \
134 sa/ikev1/tasks/isakmp_delete.c sa/ikev1/tasks/isakmp_delete.h \
135 sa/ikev1/tasks/isakmp_dpd.c sa/ikev1/tasks/isakmp_dpd.h \
136 sa/ikev1/tasks/xauth.c sa/ikev1/tasks/xauth.h \
137 sa/ikev1/tasks/quick_mode.c sa/ikev1/tasks/quick_mode.h \
138 sa/ikev1/tasks/quick_delete.c sa/ikev1/tasks/quick_delete.h \
139 sa/ikev1/tasks/mode_config.c sa/ikev1/tasks/mode_config.h \
140 processing/jobs/dpd_timeout_job.c processing/jobs/dpd_timeout_job.h \
141 processing/jobs/adopt_children_job.c processing/jobs/adopt_children_job.h
142 endif
143
144 if USE_SYSLOG
145   libcharon_la_SOURCES += \
146     bus/listeners/sys_logger.c bus/listeners/sys_logger.h
147 endif
148
149 daemon.lo :             $(top_builddir)/config.status
150
151 AM_CPPFLAGS = \
152         -I${linux_headers} \
153         -I$(top_srcdir)/src/libstrongswan \
154         -I$(top_srcdir)/src/libcharon \
155         -DIPSEC_DIR=\"${ipsecdir}\" \
156         -DIPSEC_PIDDIR=\"${piddir}\"
157
158 AM_CFLAGS = \
159   @COVERAGE_CFLAGS@
160
161 AM_LDFLAGS = \
162   -no-undefined
163
164 libcharon_la_LIBADD = \
165   $(top_builddir)/src/libstrongswan/libstrongswan.la \
166   -lm $(PTHREADLIB) $(ATOMICLIB) $(DLLIB) $(SOCKLIB)
167
168 if USE_WINDOWS
169   libcharon_la_LIBADD += -lws2_32
170 endif
171
172 EXTRA_DIST = Android.mk
173
174 # compile options
175 #################
176
177 if USE_ME
178   libcharon_la_SOURCES += encoding/payloads/endpoint_notify.c encoding/payloads/endpoint_notify.h \
179     processing/jobs/initiate_mediation_job.c processing/jobs/initiate_mediation_job.h \
180     processing/jobs/mediation_job.c processing/jobs/mediation_job.h \
181     sa/ikev2/connect_manager.c sa/ikev2/connect_manager.h \
182     sa/ikev2/mediation_manager.c sa/ikev2/mediation_manager.h \
183     sa/ikev2/tasks/ike_me.c sa/ikev2/tasks/ike_me.h
184 endif
185
186 if STATIC_PLUGIN_CONSTRUCTORS
187 BUILT_SOURCES = $(srcdir)/plugin_constructors.c
188 CLEANFILES = $(srcdir)/plugin_constructors.c
189
190 $(srcdir)/plugin_constructors.c: $(top_srcdir)/src/libstrongswan/plugins/plugin_constructors.py
191                 $(AM_V_GEN) \
192                 $(PYTHON) $(top_srcdir)/src/libstrongswan/plugins/plugin_constructors.py ${c_plugins} > $@
193 endif
194
195 # build optional plugins
196 ########################
197
198 if MONOLITHIC
199 SUBDIRS =
200 else
201 SUBDIRS = .
202 endif
203
204 if USE_LOAD_TESTER
205   SUBDIRS += plugins/load_tester
206 if MONOLITHIC
207   libcharon_la_LIBADD += plugins/load_tester/libstrongswan-load-tester.la
208 endif
209 endif
210
211 if USE_SAVE_KEYS
212  SUBDIRS += plugins/save_keys
213 if MONOLITHIC
214  libcharon_la_LIBADD += plugins/save_keys/libstrongswan-save-keys.la
215 endif
216 endif
217
218 if USE_SOCKET_DEFAULT
219   SUBDIRS += plugins/socket_default
220 if MONOLITHIC
221   libcharon_la_LIBADD += plugins/socket_default/libstrongswan-socket-default.la
222 endif
223 endif
224
225 if USE_SOCKET_DYNAMIC
226   SUBDIRS += plugins/socket_dynamic
227 if MONOLITHIC
228   libcharon_la_LIBADD += plugins/socket_dynamic/libstrongswan-socket-dynamic.la
229 endif
230 endif
231
232 if USE_SOCKET_WIN
233   SUBDIRS += plugins/socket_win
234 if MONOLITHIC
235   libcharon_la_LIBADD += plugins/socket_win/libstrongswan-socket-win.la
236 endif
237 endif
238
239 if USE_CONNMARK
240   SUBDIRS += plugins/connmark
241 if MONOLITHIC
242   libcharon_la_LIBADD += plugins/connmark/libstrongswan-connmark.la
243 endif
244 endif
245
246 if USE_BYPASS_LAN
247   SUBDIRS += plugins/bypass_lan
248 if MONOLITHIC
249   libcharon_la_LIBADD += plugins/bypass_lan/libstrongswan-bypass-lan.la
250 endif
251 endif
252
253 if USE_FORECAST
254   SUBDIRS += plugins/forecast
255 if MONOLITHIC
256   libcharon_la_LIBADD += plugins/forecast/libstrongswan-forecast.la
257 endif
258 endif
259
260 if USE_FARP
261   SUBDIRS += plugins/farp
262 if MONOLITHIC
263   libcharon_la_LIBADD += plugins/farp/libstrongswan-farp.la
264 endif
265 endif
266
267 if USE_COUNTERS
268   SUBDIRS += plugins/counters
269 if MONOLITHIC
270   libcharon_la_LIBADD += plugins/counters/libstrongswan-counters.la
271 endif
272 endif
273
274 if USE_STROKE
275   SUBDIRS += plugins/stroke
276 if MONOLITHIC
277   libcharon_la_LIBADD += plugins/stroke/libstrongswan-stroke.la
278 endif
279 endif
280
281 if USE_VICI
282   SUBDIRS += plugins/vici
283 if MONOLITHIC
284   libcharon_la_LIBADD += plugins/vici/libstrongswan-vici.la
285 endif
286 endif
287
288 if USE_SMP
289   SUBDIRS += plugins/smp
290 if MONOLITHIC
291   libcharon_la_LIBADD += plugins/smp/libstrongswan-smp.la
292 endif
293 endif
294
295 if USE_SQL
296   SUBDIRS += plugins/sql
297 if MONOLITHIC
298   libcharon_la_LIBADD += plugins/sql/libstrongswan-sql.la
299 endif
300 endif
301
302 if USE_DNSCERT
303   SUBDIRS += plugins/dnscert
304 if MONOLITHIC
305   libcharon_la_LIBADD += plugins/dnscert/libstrongswan-dnscert.la
306 endif
307 endif
308
309 if USE_IPSECKEY
310   SUBDIRS += plugins/ipseckey
311 if MONOLITHIC
312   libcharon_la_LIBADD += plugins/ipseckey/libstrongswan-ipseckey.la
313 endif
314 endif
315
316 if USE_UPDOWN
317   SUBDIRS += plugins/updown
318 if MONOLITHIC
319   libcharon_la_LIBADD += plugins/updown/libstrongswan-updown.la
320 endif
321 endif
322
323 if USE_EXT_AUTH
324   SUBDIRS += plugins/ext_auth
325 if MONOLITHIC
326   libcharon_la_LIBADD += plugins/ext_auth/libstrongswan-ext-auth.la
327 endif
328 endif
329
330 if USE_EAP_IDENTITY
331   SUBDIRS += plugins/eap_identity
332 if MONOLITHIC
333   libcharon_la_LIBADD += plugins/eap_identity/libstrongswan-eap-identity.la
334 endif
335 endif
336
337 if USE_EAP_SIM
338   SUBDIRS += plugins/eap_sim
339 if MONOLITHIC
340   libcharon_la_LIBADD += plugins/eap_sim/libstrongswan-eap-sim.la
341 endif
342 endif
343
344 if USE_EAP_SIM_FILE
345   SUBDIRS += plugins/eap_sim_file
346 if MONOLITHIC
347   libcharon_la_LIBADD += plugins/eap_sim_file/libstrongswan-eap-sim-file.la
348 endif
349 endif
350
351 if USE_EAP_SIM_PCSC
352   SUBDIRS += plugins/eap_sim_pcsc
353 if MONOLITHIC
354   libcharon_la_LIBADD += plugins/eap_sim_pcsc/libstrongswan-eap-sim-pcsc.la
355 endif
356 endif
357
358 if USE_EAP_SIMAKA_SQL
359   SUBDIRS += plugins/eap_simaka_sql
360 if MONOLITHIC
361   libcharon_la_LIBADD += plugins/eap_simaka_sql/libstrongswan-eap-simaka-sql.la
362 endif
363 endif
364
365 if USE_EAP_SIMAKA_PSEUDONYM
366   SUBDIRS += plugins/eap_simaka_pseudonym
367 if MONOLITHIC
368   libcharon_la_LIBADD += plugins/eap_simaka_pseudonym/libstrongswan-eap-simaka-pseudonym.la
369 endif
370 endif
371
372 if USE_EAP_SIMAKA_REAUTH
373   SUBDIRS += plugins/eap_simaka_reauth
374 if MONOLITHIC
375   libcharon_la_LIBADD += plugins/eap_simaka_reauth/libstrongswan-eap-simaka-reauth.la
376 endif
377 endif
378
379 if USE_EAP_AKA
380   SUBDIRS += plugins/eap_aka
381 if MONOLITHIC
382   libcharon_la_LIBADD += plugins/eap_aka/libstrongswan-eap-aka.la
383 endif
384 endif
385
386 if USE_EAP_AKA_3GPP
387   SUBDIRS += plugins/eap_aka_3gpp
388 if MONOLITHIC
389   libcharon_la_LIBADD += plugins/eap_aka_3gpp/libstrongswan-eap-aka-3gpp.la
390 endif
391 endif
392
393 if USE_EAP_AKA_3GPP2
394   SUBDIRS += plugins/eap_aka_3gpp2
395 if MONOLITHIC
396   libcharon_la_LIBADD += plugins/eap_aka_3gpp2/libstrongswan-eap-aka-3gpp2.la
397 endif
398 endif
399
400 if USE_SIMAKA
401 if MONOLITHIC
402   # otherwise this library is linked to both the eap_aka and the eap_sim plugin
403   libcharon_la_LIBADD += $(top_builddir)/src/libsimaka/libsimaka.la
404 endif
405 endif
406
407 if USE_EAP_MD5
408   SUBDIRS += plugins/eap_md5
409 if MONOLITHIC
410   libcharon_la_LIBADD += plugins/eap_md5/libstrongswan-eap-md5.la
411 endif
412 endif
413
414 if USE_EAP_GTC
415   SUBDIRS += plugins/eap_gtc
416 if MONOLITHIC
417   libcharon_la_LIBADD += plugins/eap_gtc/libstrongswan-eap-gtc.la
418 endif
419 endif
420
421 if USE_EAP_MSCHAPV2
422   SUBDIRS += plugins/eap_mschapv2
423 if MONOLITHIC
424   libcharon_la_LIBADD += plugins/eap_mschapv2/libstrongswan-eap-mschapv2.la
425 endif
426 endif
427
428 if USE_EAP_DYNAMIC
429   SUBDIRS += plugins/eap_dynamic
430 if MONOLITHIC
431   libcharon_la_LIBADD += plugins/eap_dynamic/libstrongswan-eap-dynamic.la
432 endif
433 endif
434
435 if USE_EAP_RADIUS
436   SUBDIRS += plugins/eap_radius
437 if MONOLITHIC
438   libcharon_la_LIBADD += plugins/eap_radius/libstrongswan-eap-radius.la
439 endif
440 endif
441
442 if USE_EAP_TLS
443   SUBDIRS += plugins/eap_tls
444 if MONOLITHIC
445   libcharon_la_LIBADD += plugins/eap_tls/libstrongswan-eap-tls.la
446 endif
447 endif
448
449 if USE_EAP_TTLS
450   SUBDIRS += plugins/eap_ttls
451 if MONOLITHIC
452   libcharon_la_LIBADD += plugins/eap_ttls/libstrongswan-eap-ttls.la
453 endif
454 endif
455
456 if USE_EAP_PEAP
457   SUBDIRS += plugins/eap_peap
458 if MONOLITHIC
459   libcharon_la_LIBADD += plugins/eap_peap/libstrongswan-eap-peap.la
460 endif
461 endif
462
463 if USE_EAP_TNC
464   SUBDIRS += plugins/eap_tnc
465 if MONOLITHIC
466   libcharon_la_LIBADD += plugins/eap_tnc/libstrongswan-eap-tnc.la
467 endif
468 endif
469
470 if USE_TLS
471 if MONOLITHIC
472   # otherwise this library is linked to eap_tls
473   libcharon_la_LIBADD += $(top_builddir)/src/libtls/libtls.la
474 endif
475 endif
476
477 if USE_RADIUS
478 if MONOLITHIC
479   # otherwise this library is linked to eap_radius
480   libcharon_la_LIBADD += $(top_builddir)/src/libradius/libradius.la
481 endif
482 endif
483
484 if USE_TNC_IFMAP
485   SUBDIRS += plugins/tnc_ifmap
486 if MONOLITHIC
487   libcharon_la_LIBADD += plugins/tnc_ifmap/libstrongswan-tnc-ifmap.la
488 endif
489 endif
490
491 if USE_TNC_PDP
492   SUBDIRS += plugins/tnc_pdp
493 if MONOLITHIC
494   libcharon_la_LIBADD += plugins/tnc_pdp/libstrongswan-tnc-pdp.la
495 endif
496 endif
497
498 if USE_LIBTNCCS
499 if MONOLITHIC
500   # otherwise this library is linked to the respective plugins
501   libcharon_la_LIBADD += $(top_builddir)/src/libtnccs/libtnccs.la
502 endif
503 endif
504
505 if USE_MEDSRV
506   SUBDIRS += plugins/medsrv
507 if MONOLITHIC
508   libcharon_la_LIBADD += plugins/medsrv/libstrongswan-medsrv.la
509 endif
510 endif
511
512 if USE_MEDCLI
513   SUBDIRS += plugins/medcli
514 if MONOLITHIC
515   libcharon_la_LIBADD += plugins/medcli/libstrongswan-medcli.la
516 endif
517 endif
518
519 if USE_DHCP
520   SUBDIRS += plugins/dhcp
521 if MONOLITHIC
522   libcharon_la_LIBADD += plugins/dhcp/libstrongswan-dhcp.la
523 endif
524 endif
525
526 if USE_OSX_ATTR
527   SUBDIRS += plugins/osx_attr
528 if MONOLITHIC
529   libcharon_la_LIBADD += plugins/osx_attr/libstrongswan-osx-attr.la
530 endif
531 endif
532
533 if USE_P_CSCF
534   SUBDIRS += plugins/p_cscf
535 if MONOLITHIC
536   libcharon_la_LIBADD += plugins/p_cscf/libstrongswan-p-cscf.la
537 endif
538 endif
539
540 if USE_ANDROID_DNS
541   SUBDIRS += plugins/android_dns
542 if MONOLITHIC
543   libcharon_la_LIBADD += plugins/android_dns/libstrongswan-android-dns.la
544 endif
545 endif
546
547 if USE_ANDROID_LOG
548   SUBDIRS += plugins/android_log
549 if MONOLITHIC
550   libcharon_la_LIBADD += plugins/android_log/libstrongswan-android-log.la
551 endif
552 endif
553
554 if USE_HA
555   SUBDIRS += plugins/ha
556 if MONOLITHIC
557   libcharon_la_LIBADD += plugins/ha/libstrongswan-ha.la
558 endif
559 endif
560
561 if USE_KERNEL_PFKEY
562   SUBDIRS += plugins/kernel_pfkey
563 if MONOLITHIC
564   libcharon_la_LIBADD += plugins/kernel_pfkey/libstrongswan-kernel-pfkey.la
565 endif
566 endif
567
568 if USE_KERNEL_PFROUTE
569   SUBDIRS += plugins/kernel_pfroute
570 if MONOLITHIC
571   libcharon_la_LIBADD += plugins/kernel_pfroute/libstrongswan-kernel-pfroute.la
572 endif
573 endif
574
575 if USE_KERNEL_NETLINK
576   SUBDIRS += plugins/kernel_netlink
577 if MONOLITHIC
578   libcharon_la_LIBADD += plugins/kernel_netlink/libstrongswan-kernel-netlink.la
579 endif
580 endif
581
582 if USE_KERNEL_LIBIPSEC
583   SUBDIRS += plugins/kernel_libipsec
584 if MONOLITHIC
585   libcharon_la_LIBADD += plugins/kernel_libipsec/libstrongswan-kernel-libipsec.la
586 endif
587 endif
588
589 if USE_KERNEL_WFP
590   SUBDIRS += plugins/kernel_wfp
591 if MONOLITHIC
592   libcharon_la_LIBADD += plugins/kernel_wfp/libstrongswan-kernel-wfp.la
593 endif
594 endif
595
596 if USE_KERNEL_IPH
597   SUBDIRS += plugins/kernel_iph
598 if MONOLITHIC
599   libcharon_la_LIBADD += plugins/kernel_iph/libstrongswan-kernel-iph.la
600 endif
601 endif
602
603 if USE_WHITELIST
604   SUBDIRS += plugins/whitelist
605 if MONOLITHIC
606   libcharon_la_LIBADD += plugins/whitelist/libstrongswan-whitelist.la
607 endif
608 endif
609
610 if USE_LOOKIP
611   SUBDIRS += plugins/lookip
612 if MONOLITHIC
613   libcharon_la_LIBADD += plugins/lookip/libstrongswan-lookip.la
614 endif
615 endif
616
617 if USE_ERROR_NOTIFY
618   SUBDIRS += plugins/error_notify
619 if MONOLITHIC
620   libcharon_la_LIBADD += plugins/error_notify/libstrongswan-error-notify.la
621 endif
622 endif
623
624 if USE_CERTEXPIRE
625   SUBDIRS += plugins/certexpire
626 if MONOLITHIC
627   libcharon_la_LIBADD += plugins/certexpire/libstrongswan-certexpire.la
628 endif
629 endif
630
631 if USE_SYSTIME_FIX
632   SUBDIRS += plugins/systime_fix
633 if MONOLITHIC
634   libcharon_la_LIBADD += plugins/systime_fix/libstrongswan-systime-fix.la
635 endif
636 endif
637
638 if USE_LED
639   SUBDIRS += plugins/led
640 if MONOLITHIC
641   libcharon_la_LIBADD += plugins/led/libstrongswan-led.la
642 endif
643 endif
644
645 if USE_DUPLICHECK
646   SUBDIRS += plugins/duplicheck
647 if MONOLITHIC
648   libcharon_la_LIBADD += plugins/duplicheck/libstrongswan-duplicheck.la
649 endif
650 endif
651
652 if USE_COUPLING
653   SUBDIRS += plugins/coupling
654 if MONOLITHIC
655   libcharon_la_LIBADD += plugins/coupling/libstrongswan-coupling.la
656 endif
657 endif
658
659 if USE_RADATTR
660   SUBDIRS += plugins/radattr
661 if MONOLITHIC
662   libcharon_la_LIBADD += plugins/radattr/libstrongswan-radattr.la
663 endif
664 endif
665
666 if USE_UCI
667   SUBDIRS += plugins/uci
668 if MONOLITHIC
669   libcharon_la_LIBADD += plugins/uci/libstrongswan-uci.la
670 endif
671 endif
672
673 if USE_ADDRBLOCK
674   SUBDIRS += plugins/addrblock
675 if MONOLITHIC
676   libcharon_la_LIBADD += plugins/addrblock/libstrongswan-addrblock.la
677 endif
678 endif
679
680 if USE_UNITY
681   SUBDIRS += plugins/unity
682 if MONOLITHIC
683   libcharon_la_LIBADD += plugins/unity/libstrongswan-unity.la
684 endif
685 endif
686
687 if USE_XAUTH_GENERIC
688   SUBDIRS += plugins/xauth_generic
689 if MONOLITHIC
690   libcharon_la_LIBADD += plugins/xauth_generic/libstrongswan-xauth-generic.la
691 endif
692 endif
693
694 if USE_XAUTH_EAP
695   SUBDIRS += plugins/xauth_eap
696 if MONOLITHIC
697   libcharon_la_LIBADD += plugins/xauth_eap/libstrongswan-xauth-eap.la
698 endif
699 endif
700
701 if USE_XAUTH_PAM
702   SUBDIRS += plugins/xauth_pam
703 if MONOLITHIC
704   libcharon_la_LIBADD += plugins/xauth_pam/libstrongswan-xauth-pam.la
705 endif
706 endif
707
708 if USE_XAUTH_NOAUTH
709   SUBDIRS += plugins/xauth_noauth
710 if MONOLITHIC
711   libcharon_la_LIBADD += plugins/xauth_noauth/libstrongswan-xauth-noauth.la
712 endif
713 endif
714
715 if USE_RESOLVE
716   SUBDIRS += plugins/resolve
717 if MONOLITHIC
718   libcharon_la_LIBADD += plugins/resolve/libstrongswan-resolve.la
719 endif
720 endif
721
722 if USE_ATTR
723   SUBDIRS += plugins/attr
724 if MONOLITHIC
725   libcharon_la_LIBADD += plugins/attr/libstrongswan-attr.la
726 endif
727 endif
728
729 if USE_ATTR_SQL
730   SUBDIRS += plugins/attr_sql
731 if MONOLITHIC
732   libcharon_la_LIBADD += plugins/attr_sql/libstrongswan-attr-sql.la
733 endif
734 endif
735
736 if MONOLITHIC
737   SUBDIRS += .
738 endif
739
740 # build unit tests
741 ##################
742
743 SUBDIRS += tests
744
745 if USE_EAP_AKA_3GPP
746   SUBDIRS += plugins/eap_aka_3gpp/tests
747 endif