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