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