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