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