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