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