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