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