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 \
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 \
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 \
49 libstrongswan_la_SOURCES += \
51 threading/thread_value.c \
54 threading/spinlock.c \
55 threading/semaphore.c \
56 networking/streams/stream_unix.c \
57 networking/streams/stream_service_unix.c
60 # private header files
62 settings/settings_types.h
65 strongswan_includedir = ${dev_headers}
66 nobase_strongswan_include_HEADERS = \
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
122 library.lo : $(top_builddir)/config.status
124 libstrongswan_la_LIBADD = \
125 $(DLLIB) $(ATOMICLIB) $(BTLIB) $(SOCKLIB) \
126 $(RTLIB) $(BFDLIB) $(UNWINDLIB)
129 -I$(top_srcdir)/src/libstrongswan \
130 -DIPSEC_DIR=\"${ipsecdir}\" \
131 -DIPSEC_LIB_DIR=\"${ipseclibdir}\" \
132 -DPLUGINDIR=\"${plugindir}\" \
133 -DSTRONGSWAN_CONF=\"${strongswan_conf}\"
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
154 libstrongswan_la_LIBADD += $(PTHREADLIB)
158 libstrongswan_la_LIBADD += -ldbghelp
159 AM_CPPFLAGS += -DHAVE_DBGHELP
162 if USE_LEAK_DETECTIVE
163 AM_CPPFLAGS += -DLEAK_DETECTIVE
164 libstrongswan_la_SOURCES += utils/leak_detective.c
168 AM_CPPFLAGS += -DLOCK_PROFILER
171 if USE_INTEGRITY_TEST
172 AM_CPPFLAGS += -DINTEGRITY_TEST
173 libstrongswan_la_SOURCES += utils/integrity_checker.c
177 libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_vstr.c
178 libstrongswan_la_LIBADD += -lvstr
181 if USE_BUILTIN_PRINTF
182 libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_builtin.c
183 libstrongswan_la_LIBADD += -lm
186 if !USE_BUILTIN_PRINTF
188 libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_glibc.c
193 libstrongswan_la_LIBADD += -lcap
197 asn1/oid.txt asn1/oid.pl \
198 crypto/proposal/proposal_keywords_static.txt \
202 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
203 $(srcdir)/crypto/proposal/proposal_keywords_static.c \
204 settings/settings_parser.h
206 MAINTAINERCLEANFILES = \
207 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
208 $(srcdir)/crypto/proposal/proposal_keywords_static.c
210 $(srcdir)/asn1/oid.c : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
212 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
214 $(srcdir)/asn1/oid.h : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
216 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
218 $(srcdir)/crypto/proposal/proposal_keywords_static.c: $(srcdir)/crypto/proposal/proposal_keywords_static.txt \
219 $(srcdir)/crypto/proposal/proposal_keywords_static.h
221 $(GPERF) -N proposal_get_token_static -m 10 -C -G -c -t -D < \
222 $(srcdir)/crypto/proposal/proposal_keywords_static.txt > $@
230 # build libnttfft used by some plugins
231 ######################################
234 SUBDIRS += math/libnttfft
237 # build plugins with their own Makefile
238 #######################################
241 SUBDIRS += plugins/af_alg
243 libstrongswan_la_LIBADD += plugins/af_alg/libstrongswan-af-alg.la
248 SUBDIRS += plugins/aes
250 libstrongswan_la_LIBADD += plugins/aes/libstrongswan-aes.la
255 SUBDIRS += plugins/des
257 libstrongswan_la_LIBADD += plugins/des/libstrongswan-des.la
262 SUBDIRS += plugins/blowfish
264 libstrongswan_la_LIBADD += plugins/blowfish/libstrongswan-blowfish.la
269 SUBDIRS += plugins/rc2
271 libstrongswan_la_LIBADD += plugins/rc2/libstrongswan-rc2.la
276 SUBDIRS += plugins/md4
278 libstrongswan_la_LIBADD += plugins/md4/libstrongswan-md4.la
283 SUBDIRS += plugins/md5
285 libstrongswan_la_LIBADD += plugins/md5/libstrongswan-md5.la
290 SUBDIRS += plugins/sha1
292 libstrongswan_la_LIBADD += plugins/sha1/libstrongswan-sha1.la
297 SUBDIRS += plugins/sha2
299 libstrongswan_la_LIBADD += plugins/sha2/libstrongswan-sha2.la
304 SUBDIRS += plugins/sha3
306 libstrongswan_la_LIBADD += plugins/sha3/libstrongswan-sha3.la
311 SUBDIRS += plugins/gmp
313 libstrongswan_la_LIBADD += plugins/gmp/libstrongswan-gmp.la
318 SUBDIRS += plugins/rdrand
320 libstrongswan_la_LIBADD += plugins/rdrand/libstrongswan-rdrand.la
325 SUBDIRS += plugins/aesni
327 libstrongswan_la_LIBADD += plugins/aesni/libstrongswan-aesni.la
332 SUBDIRS += plugins/random
334 libstrongswan_la_LIBADD += plugins/random/libstrongswan-random.la
339 SUBDIRS += plugins/nonce
341 libstrongswan_la_LIBADD += plugins/nonce/libstrongswan-nonce.la
346 SUBDIRS += plugins/hmac
348 libstrongswan_la_LIBADD += plugins/hmac/libstrongswan-hmac.la
353 SUBDIRS += plugins/cmac
355 libstrongswan_la_LIBADD += plugins/cmac/libstrongswan-cmac.la
360 SUBDIRS += plugins/xcbc
362 libstrongswan_la_LIBADD += plugins/xcbc/libstrongswan-xcbc.la
367 SUBDIRS += plugins/x509
369 libstrongswan_la_LIBADD += plugins/x509/libstrongswan-x509.la
374 SUBDIRS += plugins/revocation
376 libstrongswan_la_LIBADD += plugins/revocation/libstrongswan-revocation.la
381 SUBDIRS += plugins/constraints
383 libstrongswan_la_LIBADD += plugins/constraints/libstrongswan-constraints.la
388 SUBDIRS += plugins/acert
390 libstrongswan_la_LIBADD += plugins/acert/libstrongswan-acert.la
395 SUBDIRS += plugins/pubkey
397 libstrongswan_la_LIBADD += plugins/pubkey/libstrongswan-pubkey.la
402 SUBDIRS += plugins/pkcs1
404 libstrongswan_la_LIBADD += plugins/pkcs1/libstrongswan-pkcs1.la
409 SUBDIRS += plugins/pkcs7
411 libstrongswan_la_LIBADD += plugins/pkcs7/libstrongswan-pkcs7.la
416 SUBDIRS += plugins/pkcs8
418 libstrongswan_la_LIBADD += plugins/pkcs8/libstrongswan-pkcs8.la
423 SUBDIRS += plugins/pkcs12
425 libstrongswan_la_LIBADD += plugins/pkcs12/libstrongswan-pkcs12.la
430 SUBDIRS += plugins/pgp
432 libstrongswan_la_LIBADD += plugins/pgp/libstrongswan-pgp.la
437 SUBDIRS += plugins/dnskey
439 libstrongswan_la_LIBADD += plugins/dnskey/libstrongswan-dnskey.la
444 SUBDIRS += plugins/sshkey
446 libstrongswan_la_LIBADD += plugins/sshkey/libstrongswan-sshkey.la
451 SUBDIRS += plugins/pem
453 libstrongswan_la_LIBADD += plugins/pem/libstrongswan-pem.la
458 SUBDIRS += plugins/curl
460 libstrongswan_la_LIBADD += plugins/curl/libstrongswan-curl.la
465 SUBDIRS += plugins/files
467 libstrongswan_la_LIBADD += plugins/files/libstrongswan-files.la
472 SUBDIRS += plugins/winhttp
474 libstrongswan_la_LIBADD += plugins/winhttp/libstrongswan-winhttp.la
479 SUBDIRS += plugins/unbound
481 libstrongswan_la_LIBADD += plugins/unbound/libstrongswan-unbound.la
486 SUBDIRS += plugins/soup
488 libstrongswan_la_LIBADD += plugins/soup/libstrongswan-soup.la
493 SUBDIRS += plugins/ldap
495 libstrongswan_la_LIBADD += plugins/ldap/libstrongswan-ldap.la
500 SUBDIRS += plugins/mysql
502 libstrongswan_la_LIBADD += plugins/mysql/libstrongswan-mysql.la
507 SUBDIRS += plugins/sqlite
509 libstrongswan_la_LIBADD += plugins/sqlite/libstrongswan-sqlite.la
514 SUBDIRS += plugins/padlock
516 libstrongswan_la_LIBADD += plugins/padlock/libstrongswan-padlock.la
521 SUBDIRS += plugins/openssl
523 libstrongswan_la_LIBADD += plugins/openssl/libstrongswan-openssl.la
528 SUBDIRS += plugins/gcrypt
530 libstrongswan_la_LIBADD += plugins/gcrypt/libstrongswan-gcrypt.la
535 SUBDIRS += plugins/fips_prf
537 libstrongswan_la_LIBADD += plugins/fips_prf/libstrongswan-fips-prf.la
542 SUBDIRS += plugins/agent
544 libstrongswan_la_LIBADD += plugins/agent/libstrongswan-agent.la
549 SUBDIRS += plugins/keychain
551 libstrongswan_la_LIBADD += plugins/keychain/libstrongswan-keychain.la
556 SUBDIRS += plugins/pkcs11
558 libstrongswan_la_LIBADD += plugins/pkcs11/libstrongswan-pkcs11.la
563 SUBDIRS += plugins/chapoly
565 libstrongswan_la_LIBADD += plugins/chapoly/libstrongswan-chapoly.la
570 SUBDIRS += plugins/ctr
572 libstrongswan_la_LIBADD += plugins/ctr/libstrongswan-ctr.la
577 SUBDIRS += plugins/ccm
579 libstrongswan_la_LIBADD += plugins/ccm/libstrongswan-ccm.la
584 SUBDIRS += plugins/gcm
586 libstrongswan_la_LIBADD += plugins/gcm/libstrongswan-gcm.la
591 SUBDIRS += plugins/ntru
593 libstrongswan_la_LIBADD += plugins/ntru/libstrongswan-ntru.la
598 SUBDIRS += plugins/bliss
600 libstrongswan_la_LIBADD += plugins/bliss/libstrongswan-bliss.la
605 SUBDIRS += plugins/newhope
607 libstrongswan_la_LIBADD += plugins/newhope/libstrongswan-newhope.la
612 SUBDIRS += plugins/test_vectors
614 libstrongswan_la_LIBADD += plugins/test_vectors/libstrongswan-test-vectors.la
628 SUBDIRS += math/libnttfft/tests
632 SUBDIRS += plugins/bliss/tests
636 SUBDIRS += plugins/newhope/tests