Version bump to 5.9.7dr2
[strongswan.git] / src / libstrongswan / Makefile.am
1 ipseclib_LTLIBRARIES = libstrongswan.la
2
3 libstrongswan_la_SOURCES = \
4 library.c \
5 asn1/asn1.c asn1/asn1_parser.c asn1/oid.c bio/bio_reader.c bio/bio_writer.c \
6 collections/blocking_queue.c collections/enumerator.c collections/hashtable.c \
7 collections/hashlist.c collections/array.c \
8 collections/linked_list.c crypto/crypters/crypter.c \
9 crypto/drbgs/drbg.c crypto/hashers/hasher.c \
10 crypto/hashers/hash_algorithm_set.c crypto/proposal/proposal.c \
11 crypto/proposal/proposal_keywords.c crypto/proposal/proposal_keywords_static.c \
12 crypto/prfs/prf.c crypto/prfs/mac_prf.c crypto/pkcs5.c \
13 crypto/rngs/rng.c crypto/rngs/rng_tester.c \
14 crypto/signers/signer.c \
15 crypto/signers/mac_signer.c crypto/crypto_factory.c crypto/crypto_tester.c \
16 crypto/key_exchange.c crypto/aead.c crypto/transform.c \
17 crypto/iv/iv_gen.c crypto/iv/iv_gen_rand.c crypto/iv/iv_gen_seq.c \
18 crypto/iv/iv_gen_null.c crypto/kdfs/kdf.c \
19 crypto/xofs/xof.c crypto/xofs/xof_bitspender.c \
20 credentials/credential_factory.c credentials/builder.c \
21 credentials/cred_encoding.c credentials/keys/private_key.c \
22 credentials/keys/public_key.c credentials/keys/shared_key.c \
23 credentials/keys/signature_params.c \
24 credentials/certificates/certificate.c credentials/certificates/crl.c \
25 credentials/certificates/ocsp_response.c credentials/certificates/x509.c \
26 credentials/certificates/certificate_printer.c \
27 credentials/containers/container.c credentials/containers/pkcs12.c \
28 credentials/credential_manager.c \
29 credentials/sets/auth_cfg_wrapper.c credentials/sets/ocsp_response_wrapper.c \
30 credentials/sets/cert_cache.c credentials/sets/mem_cred.c \
31 credentials/sets/callback_cred.c credentials/auth_cfg.c database/database.c \
32 database/database_factory.c fetcher/fetcher.c fetcher/fetcher_manager.c eap/eap.c \
33 ipsec/ipsec_types.c \
34 metadata/metadata_factory.c metadata/metadata_int.c metadata/metadata_set.c \
35 networking/host.c networking/host_resolver.c networking/packet.c \
36 networking/tun_device.c networking/streams/stream_manager.c \
37 networking/streams/stream.c networking/streams/stream_service.c \
38 networking/streams/stream_tcp.c networking/streams/stream_service_tcp.c \
39 pen/pen.c plugins/plugin_loader.c plugins/plugin_feature.c processing/jobs/job.c \
40 processing/jobs/callback_job.c processing/processor.c processing/scheduler.c \
41 processing/watcher.c resolver/resolver_manager.c resolver/rr_set.c \
42 selectors/sec_label.c selectors/traffic_selector.c \
43 settings/settings.c settings/settings_types.c \
44 settings/settings_parser.y settings/settings_lexer.l utils/cpu_feature.c \
45 utils/utils.c utils/chunk.c utils/debug.c utils/enum.c utils/identification.c \
46 utils/lexparser.c utils/optionsfrom.c utils/capabilities.c utils/backtrace.c \
47 utils/parser_helper.c utils/test.c utils/process.c utils/utils/strerror.c \
48 utils/utils/atomics.c utils/utils/string.c utils/utils/memory.c \
49 utils/utils/tty.c utils/utils/path.c utils/utils/status.c utils/utils/time.c \
50 utils/utils/align.c
51
52 if !USE_WINDOWS
53   libstrongswan_la_SOURCES += \
54     threading/thread.c \
55     threading/thread_value.c \
56     threading/mutex.c \
57     threading/rwlock.c \
58     threading/spinlock.c \
59     threading/semaphore.c \
60     networking/streams/stream_unix.c \
61     networking/streams/stream_service_unix.c
62 endif
63
64 # private header files
65 noinst_HEADERS = \
66 settings/settings_types.h
67
68 if USE_DEV_HEADERS
69 strongswan_includedir = ${dev_headers}
70 nobase_strongswan_include_HEADERS = \
71 library.h \
72 asn1/asn1.h asn1/asn1_parser.h asn1/oid.h bio/bio_reader.h bio/bio_writer.h \
73 collections/blocking_queue.h collections/enumerator.h collections/hashtable.h \
74 collections/hashtable_profiler.h \
75 collections/linked_list.h collections/array.h collections/dictionary.h \
76 crypto/crypters/crypter.h crypto/drbgs/drbg.h crypto/hashers/hasher.h \
77 crypto/hashers/hash_algorithm_set.h crypto/mac.h crypto/proposal/proposal.h \
78 crypto/proposal/proposal_keywords.h crypto/proposal/proposal_keywords_static.h \
79 crypto/rngs/rng.h crypto/rngs/rng_tester.h \
80 crypto/prfs/prf.h crypto/prfs/mac_prf.h crypto/nonce_gen.h \
81 crypto/signers/signer.h crypto/signers/mac_signer.h \
82 crypto/crypto_factory.h crypto/crypto_tester.h crypto/key_exchange.h \
83 crypto/aead.h crypto/transform.h crypto/pkcs5.h crypto/iv/iv_gen.h \
84 crypto/iv/iv_gen_rand.h crypto/iv/iv_gen_seq.h crypto/iv/iv_gen_null.h \
85 crypto/xofs/xof.h crypto/xofs/xof_bitspender.h crypto/xofs/mgf1.h \
86 crypto/kdfs/kdf.h \
87 credentials/credential_factory.h credentials/builder.h \
88 credentials/cred_encoding.h credentials/keys/private_key.h \
89 credentials/keys/public_key.h credentials/keys/shared_key.h \
90 credentials/keys/signature_params.h \
91 credentials/certificates/certificate.h credentials/certificates/x509.h \
92 credentials/certificates/ac.h credentials/certificates/crl.h \
93 credentials/certificates/pkcs10.h credentials/certificates/ocsp_request.h \
94 credentials/certificates/ocsp_response.h \
95 credentials/certificates/pgp_certificate.h \
96 credentials/certificates/certificate_printer.h \
97 credentials/containers/container.h credentials/containers/pkcs7.h \
98 credentials/containers/pkcs12.h \
99 credentials/credential_manager.h credentials/sets/auth_cfg_wrapper.h \
100 credentials/sets/ocsp_response_wrapper.h credentials/sets/cert_cache.h \
101 credentials/sets/mem_cred.h credentials/sets/callback_cred.h \
102 credentials/auth_cfg.h credentials/credential_set.h credentials/cert_validator.h \
103 database/database.h database/database_factory.h fetcher/fetcher.h \
104 fetcher/fetcher_manager.h eap/eap.h pen/pen.h ipsec/ipsec_types.h \
105 metadata/metadata.h metadata/metadata_factory.h metadata/metadata_int.h \
106 metadata/metadata_set.h \
107 networking/host.h networking/host_resolver.h networking/packet.h \
108 networking/tun_device.h networking/streams/stream.h \
109 networking/streams/stream_unix.h networking/streams/stream_service_unix.h \
110 networking/streams/stream_service_systemd.h \
111 networking/streams/stream_tcp.h networking/streams/stream_service_tcp.h \
112 networking/streams/stream_service.h networking/streams/stream_manager.h \
113 resolver/resolver.h resolver/resolver_response.h resolver/rr_set.h \
114 resolver/rr.h resolver/resolver_manager.h \
115 plugins/plugin_loader.h plugins/plugin.h plugins/plugin_feature.h \
116 processing/jobs/job.h processing/jobs/callback_job.h processing/processor.h \
117 processing/scheduler.h processing/watcher.h \
118 selectors/sec_label.h selectors/traffic_selector.h \
119 settings/settings.h settings/settings_parser.h threading/thread_value.h \
120 threading/thread.h threading/windows/thread.h \
121 threading/mutex.h threading/condvar.h threading/spinlock.h threading/semaphore.h \
122 threading/rwlock.h threading/rwlock_condvar.h threading/lock_profiler.h \
123 utils/utils.h utils/chunk.h utils/debug.h utils/enum.h utils/identification.h \
124 utils/lexparser.h utils/optionsfrom.h utils/capabilities.h utils/backtrace.h \
125 utils/cpu_feature.h utils/leak_detective.h utils/printf_hook/printf_hook.h \
126 utils/printf_hook/printf_hook_vstr.h utils/printf_hook/printf_hook_builtin.h \
127 utils/parser_helper.h utils/test.h utils/integrity_checker.h utils/process.h \
128 utils/utils/strerror.h utils/compat/windows.h utils/compat/apple.h utils/compat/android.h \
129 utils/utils/atomics.h utils/utils/types.h utils/utils/byteorder.h \
130 utils/utils/string.h utils/utils/memory.h utils/utils/tty.h utils/utils/path.h \
131 utils/utils/status.h utils/utils/object.h utils/utils/time.h utils/utils/align.h
132 endif
133
134 library.lo :    $(top_builddir)/config.status
135
136 libstrongswan_la_LIBADD = \
137         $(DLLIB) $(ATOMICLIB)  $(BTLIB) $(SOCKLIB) \
138         $(RTLIB) $(BFDLIB) $(UNWINDLIB) \
139         $(selinux_LIBS)
140
141 AM_CPPFLAGS = \
142         -I$(top_srcdir)/src/libstrongswan \
143         -DIPSEC_DIR=\"${ipsecdir}\" \
144         -DIPSEC_LIB_DIR=\"${ipseclibdir}\" \
145         -DPLUGINDIR=\"${plugindir}\" \
146         -DSTRONGSWAN_CONF=\"${strongswan_conf}\"
147
148 AM_CFLAGS = \
149         $(selinux_CFLAGS) \
150         @COVERAGE_CFLAGS@
151
152 AM_LDFLAGS = \
153         -no-undefined
154
155 AM_YFLAGS = -v -d
156
157 if USE_WINDOWS
158   libstrongswan_la_LIBADD += -lws2_32 -lpsapi
159   libstrongswan_la_SOURCES += \
160     threading/windows/thread.c \
161     threading/windows/thread_value.c \
162     threading/windows/mutex.c \
163     threading/windows/rwlock.c \
164     threading/windows/spinlock.c \
165     threading/windows/semaphore.c \
166     utils/compat/windows.c
167 else
168   libstrongswan_la_LIBADD += $(PTHREADLIB)
169 endif
170
171 if USE_DBGHELP
172   libstrongswan_la_LIBADD += -ldbghelp
173   AM_CPPFLAGS += -DHAVE_DBGHELP
174 endif
175
176 if USE_LEAK_DETECTIVE
177   AM_CPPFLAGS += -DLEAK_DETECTIVE
178   libstrongswan_la_SOURCES += utils/leak_detective.c
179 endif
180
181 if USE_LOCK_PROFILER
182   AM_CPPFLAGS += -DLOCK_PROFILER
183 endif
184
185 if USE_INTEGRITY_TEST
186   AM_CPPFLAGS += -DINTEGRITY_TEST
187   libstrongswan_la_SOURCES += utils/integrity_checker.c
188 endif
189
190 if USE_VSTR
191   libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_vstr.c
192   libstrongswan_la_LIBADD += -lvstr
193 endif
194
195 if USE_BUILTIN_PRINTF
196   libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_builtin.c
197   libstrongswan_la_LIBADD += -lm
198 endif
199
200 if !USE_BUILTIN_PRINTF
201 if !USE_VSTR
202   libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_glibc.c
203 endif
204 endif
205
206 if USE_LIBCAP
207   libstrongswan_la_LIBADD += -lcap
208 endif
209
210 if USE_SYSTEMD
211   AM_CPPFLAGS += $(systemd_CFLAGS) -DUSE_SYSTEMD
212   libstrongswan_la_SOURCES += networking/streams/stream_service_systemd.c
213   libstrongswan_la_LIBADD += $(systemd_LIBS)
214 endif
215
216 EXTRA_DIST = \
217 asn1/oid.txt asn1/oid.pl \
218 crypto/proposal/proposal_keywords_static.txt \
219 crypto/proposal/proposal_keywords_static.h.in \
220 plugins/plugin_constructors.py \
221 Android.mk
222
223 BUILT_SOURCES = \
224 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
225 $(srcdir)/crypto/proposal/proposal_keywords_static.h \
226 $(srcdir)/crypto/proposal/proposal_keywords_static.c \
227 settings/settings_parser.h
228
229 MAINTAINERCLEANFILES = \
230 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
231 $(srcdir)/crypto/proposal/proposal_keywords_static.h \
232 $(srcdir)/crypto/proposal/proposal_keywords_static.c
233
234 $(srcdir)/asn1/oid.c :  $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
235                 $(AM_V_GEN) \
236                 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
237
238 $(srcdir)/asn1/oid.h :  $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
239                 $(AM_V_GEN) \
240                 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
241
242 $(srcdir)/crypto/proposal/proposal_keywords_static.h: $(srcdir)/crypto/proposal/proposal_keywords_static.h.in
243                 $(AM_V_GEN) \
244                 sed \
245                 -e "s:\@GPERF_LEN_TYPE\@:$(GPERF_LEN_TYPE):" \
246                 $(srcdir)/crypto/proposal/proposal_keywords_static.h.in > $@
247
248 $(srcdir)/crypto/proposal/proposal_keywords_static.c:   $(srcdir)/crypto/proposal/proposal_keywords_static.txt \
249                                                                                                                 $(srcdir)/crypto/proposal/proposal_keywords_static.h
250                 $(AM_V_GEN) \
251                 $(GPERF) -N proposal_get_token_static -m 10 -C -G -c -t -D \
252                         --output-file=$@ $(srcdir)/crypto/proposal/proposal_keywords_static.txt
253
254 if STATIC_PLUGIN_CONSTRUCTORS
255 BUILT_SOURCES += $(srcdir)/plugin_constructors.c
256 CLEANFILES = $(srcdir)/plugin_constructors.c
257
258 $(srcdir)/plugin_constructors.c: $(srcdir)/plugins/plugin_constructors.py
259                 $(AM_V_GEN) \
260                 $(PYTHON) $(srcdir)/plugins/plugin_constructors.py ${s_plugins} > $@
261 endif
262
263 if MONOLITHIC
264 SUBDIRS =
265 else
266 SUBDIRS = .
267 endif
268
269 # build libnttfft used by some plugins
270 ######################################
271
272 if USE_LIBNTTFFT
273   SUBDIRS += math/libnttfft
274 endif
275
276 # build plugins with their own Makefile
277 #######################################
278
279 if USE_AF_ALG
280   SUBDIRS += plugins/af_alg
281 if MONOLITHIC
282   libstrongswan_la_LIBADD += plugins/af_alg/libstrongswan-af-alg.la
283 endif
284 endif
285
286 if USE_AES
287   SUBDIRS += plugins/aes
288 if MONOLITHIC
289   libstrongswan_la_LIBADD += plugins/aes/libstrongswan-aes.la
290 endif
291 endif
292
293 if USE_DES
294   SUBDIRS += plugins/des
295 if MONOLITHIC
296   libstrongswan_la_LIBADD += plugins/des/libstrongswan-des.la
297 endif
298 endif
299
300 if USE_BLOWFISH
301   SUBDIRS += plugins/blowfish
302 if MONOLITHIC
303   libstrongswan_la_LIBADD += plugins/blowfish/libstrongswan-blowfish.la
304 endif
305 endif
306
307 if USE_RC2
308   SUBDIRS += plugins/rc2
309 if MONOLITHIC
310   libstrongswan_la_LIBADD += plugins/rc2/libstrongswan-rc2.la
311 endif
312 endif
313
314 if USE_MD4
315   SUBDIRS += plugins/md4
316 if MONOLITHIC
317   libstrongswan_la_LIBADD += plugins/md4/libstrongswan-md4.la
318 endif
319 endif
320
321 if USE_MD5
322   SUBDIRS += plugins/md5
323 if MONOLITHIC
324   libstrongswan_la_LIBADD += plugins/md5/libstrongswan-md5.la
325 endif
326 endif
327
328 if USE_SHA1
329   SUBDIRS += plugins/sha1
330 if MONOLITHIC
331   libstrongswan_la_LIBADD += plugins/sha1/libstrongswan-sha1.la
332 endif
333 endif
334
335 if USE_SHA2
336   SUBDIRS += plugins/sha2
337 if MONOLITHIC
338   libstrongswan_la_LIBADD += plugins/sha2/libstrongswan-sha2.la
339 endif
340 endif
341
342 if USE_SHA3
343   SUBDIRS += plugins/sha3
344 if MONOLITHIC
345   libstrongswan_la_LIBADD += plugins/sha3/libstrongswan-sha3.la
346 endif
347 endif
348
349 if USE_GMP
350   SUBDIRS += plugins/gmp
351 if MONOLITHIC
352   libstrongswan_la_LIBADD += plugins/gmp/libstrongswan-gmp.la
353 endif
354 endif
355
356 if USE_CURVE25519
357   SUBDIRS += plugins/curve25519
358 if MONOLITHIC
359   libstrongswan_la_LIBADD += plugins/curve25519/libstrongswan-curve25519.la
360 endif
361 endif
362
363 if USE_RDRAND
364   SUBDIRS += plugins/rdrand
365 if MONOLITHIC
366   libstrongswan_la_LIBADD += plugins/rdrand/libstrongswan-rdrand.la
367 endif
368 endif
369
370 if USE_AESNI
371   SUBDIRS += plugins/aesni
372 if MONOLITHIC
373   libstrongswan_la_LIBADD += plugins/aesni/libstrongswan-aesni.la
374 endif
375 endif
376
377 if USE_RANDOM
378   SUBDIRS += plugins/random
379 if MONOLITHIC
380   libstrongswan_la_LIBADD += plugins/random/libstrongswan-random.la
381 endif
382 endif
383
384 if USE_NONCE
385   SUBDIRS += plugins/nonce
386 if MONOLITHIC
387   libstrongswan_la_LIBADD += plugins/nonce/libstrongswan-nonce.la
388 endif
389 endif
390
391 if USE_HMAC
392   SUBDIRS += plugins/hmac
393 if MONOLITHIC
394   libstrongswan_la_LIBADD += plugins/hmac/libstrongswan-hmac.la
395 endif
396 endif
397
398 if USE_KDF
399   SUBDIRS += plugins/kdf
400 if MONOLITHIC
401   libstrongswan_la_LIBADD += plugins/kdf/libstrongswan-kdf.la
402 endif
403 endif
404
405 if USE_CMAC
406   SUBDIRS += plugins/cmac
407 if MONOLITHIC
408   libstrongswan_la_LIBADD += plugins/cmac/libstrongswan-cmac.la
409 endif
410 endif
411
412 if USE_XCBC
413   SUBDIRS += plugins/xcbc
414 if MONOLITHIC
415   libstrongswan_la_LIBADD += plugins/xcbc/libstrongswan-xcbc.la
416 endif
417 endif
418
419 if USE_X509
420   SUBDIRS += plugins/x509
421 if MONOLITHIC
422   libstrongswan_la_LIBADD += plugins/x509/libstrongswan-x509.la
423 endif
424 endif
425
426 if USE_REVOCATION
427   SUBDIRS += plugins/revocation
428 if MONOLITHIC
429   libstrongswan_la_LIBADD += plugins/revocation/libstrongswan-revocation.la
430 endif
431 endif
432
433 if USE_CONSTRAINTS
434   SUBDIRS += plugins/constraints
435 if MONOLITHIC
436   libstrongswan_la_LIBADD += plugins/constraints/libstrongswan-constraints.la
437 endif
438 endif
439
440 if USE_ACERT
441   SUBDIRS += plugins/acert
442 if MONOLITHIC
443   libstrongswan_la_LIBADD += plugins/acert/libstrongswan-acert.la
444 endif
445 endif
446
447 if USE_PUBKEY
448   SUBDIRS += plugins/pubkey
449 if MONOLITHIC
450   libstrongswan_la_LIBADD += plugins/pubkey/libstrongswan-pubkey.la
451 endif
452 endif
453
454 if USE_PKCS1
455   SUBDIRS += plugins/pkcs1
456 if MONOLITHIC
457   libstrongswan_la_LIBADD += plugins/pkcs1/libstrongswan-pkcs1.la
458 endif
459 endif
460
461 if USE_PKCS7
462   SUBDIRS += plugins/pkcs7
463 if MONOLITHIC
464   libstrongswan_la_LIBADD += plugins/pkcs7/libstrongswan-pkcs7.la
465 endif
466 endif
467
468 if USE_PKCS8
469   SUBDIRS += plugins/pkcs8
470 if MONOLITHIC
471   libstrongswan_la_LIBADD += plugins/pkcs8/libstrongswan-pkcs8.la
472 endif
473 endif
474
475 if USE_PKCS12
476   SUBDIRS += plugins/pkcs12
477 if MONOLITHIC
478   libstrongswan_la_LIBADD += plugins/pkcs12/libstrongswan-pkcs12.la
479 endif
480 endif
481
482 if USE_PGP
483   SUBDIRS += plugins/pgp
484 if MONOLITHIC
485   libstrongswan_la_LIBADD += plugins/pgp/libstrongswan-pgp.la
486 endif
487 endif
488
489 if USE_DNSKEY
490   SUBDIRS += plugins/dnskey
491 if MONOLITHIC
492   libstrongswan_la_LIBADD += plugins/dnskey/libstrongswan-dnskey.la
493 endif
494 endif
495
496 if USE_SSHKEY
497   SUBDIRS += plugins/sshkey
498 if MONOLITHIC
499   libstrongswan_la_LIBADD += plugins/sshkey/libstrongswan-sshkey.la
500 endif
501 endif
502
503 if USE_PEM
504   SUBDIRS += plugins/pem
505 if MONOLITHIC
506   libstrongswan_la_LIBADD += plugins/pem/libstrongswan-pem.la
507 endif
508 endif
509
510 if USE_CURL
511   SUBDIRS += plugins/curl
512 if MONOLITHIC
513   libstrongswan_la_LIBADD += plugins/curl/libstrongswan-curl.la
514 endif
515 endif
516
517 if USE_FILES
518   SUBDIRS += plugins/files
519 if MONOLITHIC
520   libstrongswan_la_LIBADD += plugins/files/libstrongswan-files.la
521 endif
522 endif
523
524 if USE_WINHTTP
525   SUBDIRS += plugins/winhttp
526 if MONOLITHIC
527   libstrongswan_la_LIBADD += plugins/winhttp/libstrongswan-winhttp.la
528 endif
529 endif
530
531 if USE_UNBOUND
532   SUBDIRS += plugins/unbound
533 if MONOLITHIC
534   libstrongswan_la_LIBADD += plugins/unbound/libstrongswan-unbound.la
535 endif
536 endif
537
538 if USE_SOUP
539   SUBDIRS += plugins/soup
540 if MONOLITHIC
541   libstrongswan_la_LIBADD += plugins/soup/libstrongswan-soup.la
542 endif
543 endif
544
545 if USE_LDAP
546   SUBDIRS += plugins/ldap
547 if MONOLITHIC
548   libstrongswan_la_LIBADD += plugins/ldap/libstrongswan-ldap.la
549 endif
550 endif
551
552 if USE_MYSQL
553   SUBDIRS += plugins/mysql
554 if MONOLITHIC
555   libstrongswan_la_LIBADD += plugins/mysql/libstrongswan-mysql.la
556 endif
557 endif
558
559 if USE_SQLITE
560   SUBDIRS += plugins/sqlite
561 if MONOLITHIC
562   libstrongswan_la_LIBADD += plugins/sqlite/libstrongswan-sqlite.la
563 endif
564 endif
565
566 if USE_PADLOCK
567   SUBDIRS += plugins/padlock
568 if MONOLITHIC
569   libstrongswan_la_LIBADD += plugins/padlock/libstrongswan-padlock.la
570 endif
571 endif
572
573 if USE_OPENSSL
574   SUBDIRS += plugins/openssl
575 if MONOLITHIC
576   libstrongswan_la_LIBADD += plugins/openssl/libstrongswan-openssl.la
577 endif
578 endif
579
580 if USE_WOLFSSL
581   SUBDIRS += plugins/wolfssl
582 if MONOLITHIC
583   libstrongswan_la_LIBADD += plugins/wolfssl/libstrongswan-wolfssl.la
584 endif
585 endif
586
587 if USE_GCRYPT
588   SUBDIRS += plugins/gcrypt
589 if MONOLITHIC
590   libstrongswan_la_LIBADD += plugins/gcrypt/libstrongswan-gcrypt.la
591 endif
592 endif
593
594 if USE_BOTAN
595   SUBDIRS += plugins/botan
596 if MONOLITHIC
597   libstrongswan_la_LIBADD += plugins/botan/libstrongswan-botan.la
598 endif
599 endif
600
601 if USE_FIPS_PRF
602   SUBDIRS += plugins/fips_prf
603 if MONOLITHIC
604   libstrongswan_la_LIBADD += plugins/fips_prf/libstrongswan-fips-prf.la
605 endif
606 endif
607
608 if USE_AGENT
609   SUBDIRS += plugins/agent
610 if MONOLITHIC
611   libstrongswan_la_LIBADD += plugins/agent/libstrongswan-agent.la
612 endif
613 endif
614
615 if USE_KEYCHAIN
616   SUBDIRS += plugins/keychain
617 if MONOLITHIC
618   libstrongswan_la_LIBADD += plugins/keychain/libstrongswan-keychain.la
619 endif
620 endif
621
622 if USE_PKCS11
623   SUBDIRS += plugins/pkcs11
624 if MONOLITHIC
625   libstrongswan_la_LIBADD += plugins/pkcs11/libstrongswan-pkcs11.la
626 endif
627 endif
628
629 if USE_CHAPOLY
630   SUBDIRS += plugins/chapoly
631 if MONOLITHIC
632   libstrongswan_la_LIBADD += plugins/chapoly/libstrongswan-chapoly.la
633 endif
634 endif
635
636 if USE_CTR
637   SUBDIRS += plugins/ctr
638 if MONOLITHIC
639   libstrongswan_la_LIBADD += plugins/ctr/libstrongswan-ctr.la
640 endif
641 endif
642
643 if USE_CCM
644   SUBDIRS += plugins/ccm
645 if MONOLITHIC
646   libstrongswan_la_LIBADD += plugins/ccm/libstrongswan-ccm.la
647 endif
648 endif
649
650 if USE_GCM
651   SUBDIRS += plugins/gcm
652 if MONOLITHIC
653   libstrongswan_la_LIBADD += plugins/gcm/libstrongswan-gcm.la
654 endif
655 endif
656
657 if USE_MGF1
658   SUBDIRS += plugins/mgf1
659 if MONOLITHIC
660   libstrongswan_la_LIBADD += plugins/mgf1/libstrongswan-mgf1.la
661 endif
662 endif
663
664 if USE_NTRU
665   SUBDIRS += plugins/ntru
666 if MONOLITHIC
667   libstrongswan_la_LIBADD += plugins/ntru/libstrongswan-ntru.la
668 endif
669 endif
670
671 if USE_BLISS
672   SUBDIRS += plugins/bliss
673 if MONOLITHIC
674   libstrongswan_la_LIBADD += plugins/bliss/libstrongswan-bliss.la
675 endif
676 endif
677
678 if USE_NEWHOPE
679   SUBDIRS += plugins/newhope
680 if MONOLITHIC
681   libstrongswan_la_LIBADD += plugins/newhope/libstrongswan-newhope.la
682 endif
683 endif
684
685 if USE_DRBG
686   SUBDIRS += plugins/drbg
687 if MONOLITHIC
688   libstrongswan_la_LIBADD += plugins/drbg/libstrongswan-drbg.la
689 endif
690 endif
691
692 if USE_TEST_VECTORS
693   SUBDIRS += plugins/test_vectors
694 if MONOLITHIC
695   libstrongswan_la_LIBADD += plugins/test_vectors/libstrongswan-test-vectors.la
696 endif
697 endif
698
699 if MONOLITHIC
700   SUBDIRS += .
701 endif
702
703 # build unit tests
704 ##################
705
706 SUBDIRS += tests
707
708 if USE_LIBNTTFFT
709   SUBDIRS += math/libnttfft/tests
710 endif
711
712 if USE_BLISS
713   SUBDIRS += plugins/bliss/tests
714 endif
715
716 if USE_NEWHOPE
717   SUBDIRS += plugins/newhope/tests
718 endif