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