1 ipseclib_LTLIBRARIES = libstrongswan.la
3 libstrongswan_la_SOURCES = \
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/hashlist.c collections/array.c \
8 collections/linked_list.c crypto/crypters/crypter.c \
9 crypto/drbgs/drbg.c crypto/hashers/hasher.c \
10 crypto/hashers/hash_algorithm_set.c crypto/proposal/proposal.c \
11 crypto/proposal/proposal_keywords.c crypto/proposal/proposal_keywords_static.c \
12 crypto/prfs/prf.c crypto/prfs/mac_prf.c crypto/pkcs5.c \
13 crypto/rngs/rng.c crypto/rngs/rng_tester.c \
14 crypto/prf_plus.c crypto/signers/signer.c \
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 \
17 crypto/iv/iv_gen.c crypto/iv/iv_gen_rand.c crypto/iv/iv_gen_seq.c \
18 crypto/iv/iv_gen_null.c \
19 crypto/xofs/xof.c crypto/xofs/xof_bitspender.c \
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 \
23 credentials/keys/signature_params.c \
24 credentials/certificates/certificate.c credentials/certificates/crl.c \
25 credentials/certificates/ocsp_response.c credentials/certificates/x509.c \
26 credentials/certificates/certificate_printer.c \
27 credentials/containers/container.c credentials/containers/pkcs12.c \
28 credentials/credential_manager.c \
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 \
32 database/database_factory.c fetcher/fetcher.c fetcher/fetcher_manager.c eap/eap.c \
34 metadata/metadata_factory.c metadata/metadata_int.c metadata/metadata_set.c \
35 networking/host.c networking/host_resolver.c networking/packet.c \
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 \
39 pen/pen.c plugins/plugin_loader.c plugins/plugin_feature.c processing/jobs/job.c \
40 processing/jobs/callback_job.c processing/processor.c processing/scheduler.c \
41 processing/watcher.c resolver/resolver_manager.c resolver/rr_set.c \
42 selectors/traffic_selector.c settings/settings.c settings/settings_types.c \
43 settings/settings_parser.y settings/settings_lexer.l utils/cpu_feature.c \
44 utils/utils.c utils/chunk.c utils/debug.c utils/enum.c utils/identification.c \
45 utils/lexparser.c utils/optionsfrom.c utils/capabilities.c utils/backtrace.c \
46 utils/parser_helper.c utils/test.c utils/process.c utils/utils/strerror.c \
47 utils/utils/atomics.c utils/utils/string.c utils/utils/memory.c \
48 utils/utils/tty.c utils/utils/path.c utils/utils/status.c utils/utils/time.c \
52 libstrongswan_la_SOURCES += \
54 threading/thread_value.c \
57 threading/spinlock.c \
58 threading/semaphore.c \
59 networking/streams/stream_unix.c \
60 networking/streams/stream_service_unix.c
63 # private header files
65 settings/settings_types.h
68 strongswan_includedir = ${dev_headers}
69 nobase_strongswan_include_HEADERS = \
71 asn1/asn1.h asn1/asn1_parser.h asn1/oid.h bio/bio_reader.h bio/bio_writer.h \
72 collections/blocking_queue.h collections/enumerator.h collections/hashtable.h \
73 collections/hashtable_profiler.h \
74 collections/linked_list.h collections/array.h collections/dictionary.h \
75 crypto/crypters/crypter.h crypto/drbgs/drbg.h crypto/hashers/hasher.h \
76 crypto/hashers/hash_algorithm_set.h crypto/mac.h crypto/proposal/proposal.h \
77 crypto/proposal/proposal_keywords.h crypto/proposal/proposal_keywords_static.h \
78 crypto/rngs/rng.h crypto/rngs/rng_tester.h \
79 crypto/prfs/prf.h crypto/prfs/mac_prf.h crypto/nonce_gen.h \
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 \
82 crypto/aead.h crypto/transform.h crypto/pkcs5.h crypto/iv/iv_gen.h \
83 crypto/iv/iv_gen_rand.h crypto/iv/iv_gen_seq.h crypto/iv/iv_gen_null.h \
84 crypto/xofs/xof.h crypto/xofs/xof_bitspender.h crypto/xofs/mgf1.h \
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 \
88 credentials/keys/signature_params.h \
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 \
94 credentials/certificates/certificate_printer.h \
95 credentials/containers/container.h credentials/containers/pkcs7.h \
96 credentials/containers/pkcs12.h \
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 \
101 database/database.h database/database_factory.h fetcher/fetcher.h \
102 fetcher/fetcher_manager.h eap/eap.h pen/pen.h ipsec/ipsec_types.h \
103 metadata/metadata.h metadata/metadata_factory.h metadata/metadata_int.h \
104 metadata/metadata_set.h \
105 networking/host.h networking/host_resolver.h networking/packet.h \
106 networking/tun_device.h networking/streams/stream.h \
107 networking/streams/stream_unix.h networking/streams/stream_service_unix.h \
108 networking/streams/stream_service_systemd.h \
109 networking/streams/stream_tcp.h networking/streams/stream_service_tcp.h \
110 networking/streams/stream_service.h networking/streams/stream_manager.h \
111 resolver/resolver.h resolver/resolver_response.h resolver/rr_set.h \
112 resolver/rr.h resolver/resolver_manager.h \
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 \
115 processing/scheduler.h processing/watcher.h selectors/traffic_selector.h \
116 settings/settings.h settings/settings_parser.h threading/thread_value.h \
117 threading/thread.h threading/windows/thread.h \
118 threading/mutex.h threading/condvar.h threading/spinlock.h threading/semaphore.h \
119 threading/rwlock.h threading/rwlock_condvar.h threading/lock_profiler.h \
120 utils/utils.h utils/chunk.h utils/debug.h utils/enum.h utils/identification.h \
121 utils/lexparser.h utils/optionsfrom.h utils/capabilities.h utils/backtrace.h \
122 utils/cpu_feature.h utils/leak_detective.h utils/printf_hook/printf_hook.h \
123 utils/printf_hook/printf_hook_vstr.h utils/printf_hook/printf_hook_builtin.h \
124 utils/parser_helper.h utils/test.h utils/integrity_checker.h utils/process.h \
125 utils/utils/strerror.h utils/compat/windows.h utils/compat/apple.h utils/compat/android.h \
126 utils/utils/atomics.h utils/utils/types.h utils/utils/byteorder.h \
127 utils/utils/string.h utils/utils/memory.h utils/utils/tty.h utils/utils/path.h \
128 utils/utils/status.h utils/utils/object.h utils/utils/time.h utils/utils/align.h
131 library.lo : $(top_builddir)/config.status
133 libstrongswan_la_LIBADD = \
134 $(DLLIB) $(ATOMICLIB) $(BTLIB) $(SOCKLIB) \
135 $(RTLIB) $(BFDLIB) $(UNWINDLIB) \
139 -I$(top_srcdir)/src/libstrongswan \
140 -DIPSEC_DIR=\"${ipsecdir}\" \
141 -DIPSEC_LIB_DIR=\"${ipseclibdir}\" \
142 -DPLUGINDIR=\"${plugindir}\" \
143 -DSTRONGSWAN_CONF=\"${strongswan_conf}\"
155 libstrongswan_la_LIBADD += -lws2_32 -lpsapi
156 libstrongswan_la_SOURCES += \
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 \
163 utils/compat/windows.c
165 libstrongswan_la_LIBADD += $(PTHREADLIB)
169 libstrongswan_la_LIBADD += -ldbghelp
170 AM_CPPFLAGS += -DHAVE_DBGHELP
173 if USE_LEAK_DETECTIVE
174 AM_CPPFLAGS += -DLEAK_DETECTIVE
175 libstrongswan_la_SOURCES += utils/leak_detective.c
179 AM_CPPFLAGS += -DLOCK_PROFILER
182 if USE_INTEGRITY_TEST
183 AM_CPPFLAGS += -DINTEGRITY_TEST
184 libstrongswan_la_SOURCES += utils/integrity_checker.c
188 libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_vstr.c
189 libstrongswan_la_LIBADD += -lvstr
192 if USE_BUILTIN_PRINTF
193 libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_builtin.c
194 libstrongswan_la_LIBADD += -lm
197 if !USE_BUILTIN_PRINTF
199 libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_glibc.c
204 libstrongswan_la_LIBADD += -lcap
208 AM_CPPFLAGS += $(systemd_CFLAGS) -DUSE_SYSTEMD
209 libstrongswan_la_SOURCES += networking/streams/stream_service_systemd.c
210 libstrongswan_la_LIBADD += $(systemd_LIBS)
214 asn1/oid.txt asn1/oid.pl \
215 crypto/proposal/proposal_keywords_static.txt \
216 crypto/proposal/proposal_keywords_static.h.in \
217 plugins/plugin_constructors.py \
221 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
222 $(srcdir)/crypto/proposal/proposal_keywords_static.h \
223 $(srcdir)/crypto/proposal/proposal_keywords_static.c \
224 settings/settings_parser.h
226 MAINTAINERCLEANFILES = \
227 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
228 $(srcdir)/crypto/proposal/proposal_keywords_static.h \
229 $(srcdir)/crypto/proposal/proposal_keywords_static.c
231 $(srcdir)/asn1/oid.c : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
233 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
235 $(srcdir)/asn1/oid.h : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
237 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
239 $(srcdir)/crypto/proposal/proposal_keywords_static.h: $(srcdir)/crypto/proposal/proposal_keywords_static.h.in
242 -e "s:\@GPERF_LEN_TYPE\@:$(GPERF_LEN_TYPE):" \
243 $(srcdir)/crypto/proposal/proposal_keywords_static.h.in > $@
245 $(srcdir)/crypto/proposal/proposal_keywords_static.c: $(srcdir)/crypto/proposal/proposal_keywords_static.txt \
246 $(srcdir)/crypto/proposal/proposal_keywords_static.h
248 $(GPERF) -N proposal_get_token_static -m 10 -C -G -c -t -D \
249 --output-file=$@ $(srcdir)/crypto/proposal/proposal_keywords_static.txt
251 if STATIC_PLUGIN_CONSTRUCTORS
252 BUILT_SOURCES += $(srcdir)/plugin_constructors.c
253 CLEANFILES = $(srcdir)/plugin_constructors.c
255 $(srcdir)/plugin_constructors.c: $(srcdir)/plugins/plugin_constructors.py
257 $(PYTHON) $(srcdir)/plugins/plugin_constructors.py ${s_plugins} > $@
266 # build libnttfft used by some plugins
267 ######################################
270 SUBDIRS += math/libnttfft
273 # build plugins with their own Makefile
274 #######################################
277 SUBDIRS += plugins/af_alg
279 libstrongswan_la_LIBADD += plugins/af_alg/libstrongswan-af-alg.la
284 SUBDIRS += plugins/aes
286 libstrongswan_la_LIBADD += plugins/aes/libstrongswan-aes.la
291 SUBDIRS += plugins/des
293 libstrongswan_la_LIBADD += plugins/des/libstrongswan-des.la
298 SUBDIRS += plugins/blowfish
300 libstrongswan_la_LIBADD += plugins/blowfish/libstrongswan-blowfish.la
305 SUBDIRS += plugins/rc2
307 libstrongswan_la_LIBADD += plugins/rc2/libstrongswan-rc2.la
312 SUBDIRS += plugins/md4
314 libstrongswan_la_LIBADD += plugins/md4/libstrongswan-md4.la
319 SUBDIRS += plugins/md5
321 libstrongswan_la_LIBADD += plugins/md5/libstrongswan-md5.la
326 SUBDIRS += plugins/sha1
328 libstrongswan_la_LIBADD += plugins/sha1/libstrongswan-sha1.la
333 SUBDIRS += plugins/sha2
335 libstrongswan_la_LIBADD += plugins/sha2/libstrongswan-sha2.la
340 SUBDIRS += plugins/sha3
342 libstrongswan_la_LIBADD += plugins/sha3/libstrongswan-sha3.la
347 SUBDIRS += plugins/gmp
349 libstrongswan_la_LIBADD += plugins/gmp/libstrongswan-gmp.la
354 SUBDIRS += plugins/curve25519
356 libstrongswan_la_LIBADD += plugins/curve25519/libstrongswan-curve25519.la
361 SUBDIRS += plugins/rdrand
363 libstrongswan_la_LIBADD += plugins/rdrand/libstrongswan-rdrand.la
368 SUBDIRS += plugins/aesni
370 libstrongswan_la_LIBADD += plugins/aesni/libstrongswan-aesni.la
375 SUBDIRS += plugins/random
377 libstrongswan_la_LIBADD += plugins/random/libstrongswan-random.la
382 SUBDIRS += plugins/nonce
384 libstrongswan_la_LIBADD += plugins/nonce/libstrongswan-nonce.la
389 SUBDIRS += plugins/hmac
391 libstrongswan_la_LIBADD += plugins/hmac/libstrongswan-hmac.la
396 SUBDIRS += plugins/cmac
398 libstrongswan_la_LIBADD += plugins/cmac/libstrongswan-cmac.la
403 SUBDIRS += plugins/xcbc
405 libstrongswan_la_LIBADD += plugins/xcbc/libstrongswan-xcbc.la
410 SUBDIRS += plugins/x509
412 libstrongswan_la_LIBADD += plugins/x509/libstrongswan-x509.la
417 SUBDIRS += plugins/revocation
419 libstrongswan_la_LIBADD += plugins/revocation/libstrongswan-revocation.la
424 SUBDIRS += plugins/constraints
426 libstrongswan_la_LIBADD += plugins/constraints/libstrongswan-constraints.la
431 SUBDIRS += plugins/acert
433 libstrongswan_la_LIBADD += plugins/acert/libstrongswan-acert.la
438 SUBDIRS += plugins/pubkey
440 libstrongswan_la_LIBADD += plugins/pubkey/libstrongswan-pubkey.la
445 SUBDIRS += plugins/pkcs1
447 libstrongswan_la_LIBADD += plugins/pkcs1/libstrongswan-pkcs1.la
452 SUBDIRS += plugins/pkcs7
454 libstrongswan_la_LIBADD += plugins/pkcs7/libstrongswan-pkcs7.la
459 SUBDIRS += plugins/pkcs8
461 libstrongswan_la_LIBADD += plugins/pkcs8/libstrongswan-pkcs8.la
466 SUBDIRS += plugins/pkcs12
468 libstrongswan_la_LIBADD += plugins/pkcs12/libstrongswan-pkcs12.la
473 SUBDIRS += plugins/pgp
475 libstrongswan_la_LIBADD += plugins/pgp/libstrongswan-pgp.la
480 SUBDIRS += plugins/dnskey
482 libstrongswan_la_LIBADD += plugins/dnskey/libstrongswan-dnskey.la
487 SUBDIRS += plugins/sshkey
489 libstrongswan_la_LIBADD += plugins/sshkey/libstrongswan-sshkey.la
494 SUBDIRS += plugins/pem
496 libstrongswan_la_LIBADD += plugins/pem/libstrongswan-pem.la
501 SUBDIRS += plugins/curl
503 libstrongswan_la_LIBADD += plugins/curl/libstrongswan-curl.la
508 SUBDIRS += plugins/files
510 libstrongswan_la_LIBADD += plugins/files/libstrongswan-files.la
515 SUBDIRS += plugins/winhttp
517 libstrongswan_la_LIBADD += plugins/winhttp/libstrongswan-winhttp.la
522 SUBDIRS += plugins/unbound
524 libstrongswan_la_LIBADD += plugins/unbound/libstrongswan-unbound.la
529 SUBDIRS += plugins/soup
531 libstrongswan_la_LIBADD += plugins/soup/libstrongswan-soup.la
536 SUBDIRS += plugins/ldap
538 libstrongswan_la_LIBADD += plugins/ldap/libstrongswan-ldap.la
543 SUBDIRS += plugins/mysql
545 libstrongswan_la_LIBADD += plugins/mysql/libstrongswan-mysql.la
550 SUBDIRS += plugins/sqlite
552 libstrongswan_la_LIBADD += plugins/sqlite/libstrongswan-sqlite.la
557 SUBDIRS += plugins/padlock
559 libstrongswan_la_LIBADD += plugins/padlock/libstrongswan-padlock.la
564 SUBDIRS += plugins/openssl
566 libstrongswan_la_LIBADD += plugins/openssl/libstrongswan-openssl.la
571 SUBDIRS += plugins/wolfssl
573 libstrongswan_la_LIBADD += plugins/wolfssl/libstrongswan-wolfssl.la
578 SUBDIRS += plugins/gcrypt
580 libstrongswan_la_LIBADD += plugins/gcrypt/libstrongswan-gcrypt.la
585 SUBDIRS += plugins/botan
587 libstrongswan_la_LIBADD += plugins/botan/libstrongswan-botan.la
592 SUBDIRS += plugins/fips_prf
594 libstrongswan_la_LIBADD += plugins/fips_prf/libstrongswan-fips-prf.la
599 SUBDIRS += plugins/agent
601 libstrongswan_la_LIBADD += plugins/agent/libstrongswan-agent.la
606 SUBDIRS += plugins/keychain
608 libstrongswan_la_LIBADD += plugins/keychain/libstrongswan-keychain.la
613 SUBDIRS += plugins/pkcs11
615 libstrongswan_la_LIBADD += plugins/pkcs11/libstrongswan-pkcs11.la
620 SUBDIRS += plugins/chapoly
622 libstrongswan_la_LIBADD += plugins/chapoly/libstrongswan-chapoly.la
627 SUBDIRS += plugins/ctr
629 libstrongswan_la_LIBADD += plugins/ctr/libstrongswan-ctr.la
634 SUBDIRS += plugins/ccm
636 libstrongswan_la_LIBADD += plugins/ccm/libstrongswan-ccm.la
641 SUBDIRS += plugins/gcm
643 libstrongswan_la_LIBADD += plugins/gcm/libstrongswan-gcm.la
648 SUBDIRS += plugins/mgf1
650 libstrongswan_la_LIBADD += plugins/mgf1/libstrongswan-mgf1.la
655 SUBDIRS += plugins/ntru
657 libstrongswan_la_LIBADD += plugins/ntru/libstrongswan-ntru.la
662 SUBDIRS += plugins/bliss
664 libstrongswan_la_LIBADD += plugins/bliss/libstrongswan-bliss.la
669 SUBDIRS += plugins/newhope
671 libstrongswan_la_LIBADD += plugins/newhope/libstrongswan-newhope.la
676 SUBDIRS += plugins/drbg
678 libstrongswan_la_LIBADD += plugins/drbg/libstrongswan-drbg.la
683 SUBDIRS += plugins/test_vectors
685 libstrongswan_la_LIBADD += plugins/test_vectors/libstrongswan-test-vectors.la
699 SUBDIRS += math/libnttfft/tests
703 SUBDIRS += plugins/bliss/tests
707 SUBDIRS += plugins/newhope/tests