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