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