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