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 credentials/credential_factory.c credentials/builder.c \
19 credentials/cred_encoding.c credentials/keys/private_key.c \
20 credentials/keys/public_key.c credentials/keys/shared_key.c \
21 credentials/certificates/certificate.c credentials/certificates/crl.c \
22 credentials/certificates/ocsp_response.c \
23 credentials/certificates/certificate_printer.c \
24 credentials/containers/container.c credentials/containers/pkcs12.c \
25 credentials/credential_manager.c \
26 credentials/sets/auth_cfg_wrapper.c credentials/sets/ocsp_response_wrapper.c \
27 credentials/sets/cert_cache.c credentials/sets/mem_cred.c \
28 credentials/sets/callback_cred.c credentials/auth_cfg.c database/database.c \
29 database/database_factory.c fetcher/fetcher.c fetcher/fetcher_manager.c eap/eap.c \
31 networking/host.c networking/host_resolver.c networking/packet.c \
32 networking/tun_device.c networking/streams/stream_manager.c \
33 networking/streams/stream.c networking/streams/stream_service.c \
34 networking/streams/stream_tcp.c networking/streams/stream_service_tcp.c \
35 pen/pen.c plugins/plugin_loader.c plugins/plugin_feature.c processing/jobs/job.c \
36 processing/jobs/callback_job.c processing/processor.c processing/scheduler.c \
37 processing/watcher.c resolver/resolver_manager.c resolver/rr_set.c \
38 selectors/traffic_selector.c settings/settings.c settings/settings_types.c \
39 settings/settings_parser.y settings/settings_lexer.l utils/cpu_feature.c \
40 utils/utils.c utils/chunk.c utils/debug.c utils/enum.c utils/identification.c \
41 utils/lexparser.c utils/optionsfrom.c utils/capabilities.c utils/backtrace.c \
42 utils/parser_helper.c utils/test.c utils/process.c utils/utils/strerror.c \
43 utils/utils/atomics.c utils/utils/string.c utils/utils/memory.c \
44 utils/utils/tty.c utils/utils/path.c utils/utils/status.c utils/utils/time.c \
48 libstrongswan_la_SOURCES += \
50 threading/thread_value.c \
53 threading/spinlock.c \
54 threading/semaphore.c \
55 networking/streams/stream_unix.c \
56 networking/streams/stream_service_unix.c
59 # private header files
61 settings/settings_types.h
64 strongswan_includedir = ${dev_headers}
65 nobase_strongswan_include_HEADERS = \
67 asn1/asn1.h asn1/asn1_parser.h asn1/oid.h bio/bio_reader.h bio/bio_writer.h \
68 collections/blocking_queue.h collections/enumerator.h collections/hashtable.h \
69 collections/linked_list.h collections/array.h collections/dictionary.h \
70 crypto/crypters/crypter.h crypto/hashers/hasher.h \
71 crypto/hashers/hash_algorithm_set.h crypto/mac.h \
72 crypto/proposal/proposal_keywords.h crypto/proposal/proposal_keywords_static.h \
73 crypto/prfs/prf.h crypto/prfs/mac_prf.h crypto/rngs/rng.h crypto/nonce_gen.h \
74 crypto/prf_plus.h crypto/signers/signer.h crypto/signers/mac_signer.h \
75 crypto/crypto_factory.h crypto/crypto_tester.h crypto/diffie_hellman.h \
76 crypto/aead.h crypto/transform.h crypto/pkcs5.h crypto/iv/iv_gen.h \
77 crypto/iv/iv_gen_rand.h crypto/iv/iv_gen_seq.h crypto/iv/iv_gen_null.h \
78 crypto/mgf1/mgf1.h crypto/mgf1/mgf1_bitspender.h \
79 credentials/credential_factory.h credentials/builder.h \
80 credentials/cred_encoding.h credentials/keys/private_key.h \
81 credentials/keys/public_key.h credentials/keys/shared_key.h \
82 credentials/certificates/certificate.h credentials/certificates/x509.h \
83 credentials/certificates/ac.h credentials/certificates/crl.h \
84 credentials/certificates/pkcs10.h credentials/certificates/ocsp_request.h \
85 credentials/certificates/ocsp_response.h \
86 credentials/certificates/pgp_certificate.h \
87 credentials/certificates/certificate_printer.h \
88 credentials/containers/container.h credentials/containers/pkcs7.h \
89 credentials/containers/pkcs12.h \
90 credentials/credential_manager.h credentials/sets/auth_cfg_wrapper.h \
91 credentials/sets/ocsp_response_wrapper.h credentials/sets/cert_cache.h \
92 credentials/sets/mem_cred.h credentials/sets/callback_cred.h \
93 credentials/auth_cfg.h credentials/credential_set.h credentials/cert_validator.h \
94 database/database.h database/database_factory.h fetcher/fetcher.h \
95 fetcher/fetcher_manager.h eap/eap.h pen/pen.h ipsec/ipsec_types.h \
96 networking/host.h networking/host_resolver.h networking/packet.h \
97 networking/tun_device.h networking/streams/stream.h \
98 networking/streams/stream_unix.h networking/streams/stream_service_unix.h \
99 networking/streams/stream_tcp.h networking/streams/stream_service_tcp.h \
100 networking/streams/stream_service.h networking/streams/stream_manager.h \
101 resolver/resolver.h resolver/resolver_response.h resolver/rr_set.h \
102 resolver/rr.h resolver/resolver_manager.h \
103 plugins/plugin_loader.h plugins/plugin.h plugins/plugin_feature.h \
104 processing/jobs/job.h processing/jobs/callback_job.h processing/processor.h \
105 processing/scheduler.h processing/watcher.h selectors/traffic_selector.h \
106 settings/settings.h settings/settings_parser.h threading/thread_value.h \
107 threading/thread.h threading/windows/thread.h \
108 threading/mutex.h threading/condvar.h threading/spinlock.h threading/semaphore.h \
109 threading/rwlock.h threading/rwlock_condvar.h threading/lock_profiler.h \
110 utils/utils.h utils/chunk.h utils/debug.h utils/enum.h utils/identification.h \
111 utils/lexparser.h utils/optionsfrom.h utils/capabilities.h utils/backtrace.h \
112 utils/cpu_feature.h utils/leak_detective.h utils/printf_hook/printf_hook.h \
113 utils/printf_hook/printf_hook_vstr.h utils/printf_hook/printf_hook_builtin.h \
114 utils/parser_helper.h utils/test.h utils/integrity_checker.h utils/process.h \
115 utils/utils/strerror.h utils/compat/windows.h utils/compat/apple.h utils/compat/android.h \
116 utils/utils/atomics.h utils/utils/types.h utils/utils/byteorder.h \
117 utils/utils/string.h utils/utils/memory.h utils/utils/tty.h utils/utils/path.h \
118 utils/utils/status.h utils/utils/object.h utils/utils/time.h utils/utils/align.h
121 library.lo : $(top_builddir)/config.status
123 libstrongswan_la_LIBADD = $(DLLIB) $(BTLIB) $(SOCKLIB) $(RTLIB) $(BFDLIB) $(UNWINDLIB)
126 -I$(top_srcdir)/src/libstrongswan \
127 -DIPSEC_DIR=\"${ipsecdir}\" \
128 -DIPSEC_LIB_DIR=\"${ipseclibdir}\" \
129 -DPLUGINDIR=\"${plugindir}\" \
130 -DSTRONGSWAN_CONF=\"${strongswan_conf}\"
141 libstrongswan_la_LIBADD += -lws2_32 -lpsapi
142 libstrongswan_la_SOURCES += \
143 threading/windows/thread.c \
144 threading/windows/thread_value.c \
145 threading/windows/mutex.c \
146 threading/windows/rwlock.c \
147 threading/windows/spinlock.c \
148 threading/windows/semaphore.c \
149 utils/compat/windows.c
151 libstrongswan_la_LIBADD += $(PTHREADLIB)
155 libstrongswan_la_LIBADD += -ldbghelp
156 AM_CPPFLAGS += -DHAVE_DBGHELP
159 if USE_LEAK_DETECTIVE
160 AM_CPPFLAGS += -DLEAK_DETECTIVE
161 libstrongswan_la_SOURCES += utils/leak_detective.c
165 AM_CPPFLAGS += -DLOCK_PROFILER
168 if USE_INTEGRITY_TEST
169 AM_CPPFLAGS += -DINTEGRITY_TEST
170 libstrongswan_la_SOURCES += utils/integrity_checker.c
174 libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_vstr.c
175 libstrongswan_la_LIBADD += -lvstr
178 if USE_BUILTIN_PRINTF
179 libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_builtin.c
180 libstrongswan_la_LIBADD += -lm
183 if !USE_BUILTIN_PRINTF
185 libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_glibc.c
190 libstrongswan_la_LIBADD += -lcap
194 asn1/oid.txt asn1/oid.pl \
195 crypto/proposal/proposal_keywords_static.txt \
199 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
200 $(srcdir)/crypto/proposal/proposal_keywords_static.c \
201 settings/settings_parser.h
203 MAINTAINERCLEANFILES = \
204 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
205 $(srcdir)/crypto/proposal/proposal_keywords_static.c
207 $(srcdir)/asn1/oid.c : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
209 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
211 $(srcdir)/asn1/oid.h : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
213 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
215 $(srcdir)/crypto/proposal/proposal_keywords_static.c: $(srcdir)/crypto/proposal/proposal_keywords_static.txt \
216 $(srcdir)/crypto/proposal/proposal_keywords_static.h
218 $(GPERF) -N proposal_get_token_static -m 10 -C -G -c -t -D < \
219 $(srcdir)/crypto/proposal/proposal_keywords_static.txt > $@
222 # build plugins with their own Makefile
223 #######################################
232 SUBDIRS += plugins/af_alg
234 libstrongswan_la_LIBADD += plugins/af_alg/libstrongswan-af-alg.la
239 SUBDIRS += plugins/aes
241 libstrongswan_la_LIBADD += plugins/aes/libstrongswan-aes.la
246 SUBDIRS += plugins/des
248 libstrongswan_la_LIBADD += plugins/des/libstrongswan-des.la
253 SUBDIRS += plugins/blowfish
255 libstrongswan_la_LIBADD += plugins/blowfish/libstrongswan-blowfish.la
260 SUBDIRS += plugins/rc2
262 libstrongswan_la_LIBADD += plugins/rc2/libstrongswan-rc2.la
267 SUBDIRS += plugins/md4
269 libstrongswan_la_LIBADD += plugins/md4/libstrongswan-md4.la
274 SUBDIRS += plugins/md5
276 libstrongswan_la_LIBADD += plugins/md5/libstrongswan-md5.la
281 SUBDIRS += plugins/sha1
283 libstrongswan_la_LIBADD += plugins/sha1/libstrongswan-sha1.la
288 SUBDIRS += plugins/sha2
290 libstrongswan_la_LIBADD += plugins/sha2/libstrongswan-sha2.la
295 SUBDIRS += plugins/sha3
297 libstrongswan_la_LIBADD += plugins/sha3/libstrongswan-sha3.la
302 SUBDIRS += plugins/gmp
304 libstrongswan_la_LIBADD += plugins/gmp/libstrongswan-gmp.la
309 SUBDIRS += plugins/rdrand
311 libstrongswan_la_LIBADD += plugins/rdrand/libstrongswan-rdrand.la
316 SUBDIRS += plugins/aesni
318 libstrongswan_la_LIBADD += plugins/aesni/libstrongswan-aesni.la
323 SUBDIRS += plugins/random
325 libstrongswan_la_LIBADD += plugins/random/libstrongswan-random.la
330 SUBDIRS += plugins/nonce
332 libstrongswan_la_LIBADD += plugins/nonce/libstrongswan-nonce.la
337 SUBDIRS += plugins/hmac
339 libstrongswan_la_LIBADD += plugins/hmac/libstrongswan-hmac.la
344 SUBDIRS += plugins/cmac
346 libstrongswan_la_LIBADD += plugins/cmac/libstrongswan-cmac.la
351 SUBDIRS += plugins/xcbc
353 libstrongswan_la_LIBADD += plugins/xcbc/libstrongswan-xcbc.la
358 SUBDIRS += plugins/x509
360 libstrongswan_la_LIBADD += plugins/x509/libstrongswan-x509.la
365 SUBDIRS += plugins/revocation
367 libstrongswan_la_LIBADD += plugins/revocation/libstrongswan-revocation.la
372 SUBDIRS += plugins/constraints
374 libstrongswan_la_LIBADD += plugins/constraints/libstrongswan-constraints.la
379 SUBDIRS += plugins/acert
381 libstrongswan_la_LIBADD += plugins/acert/libstrongswan-acert.la
386 SUBDIRS += plugins/pubkey
388 libstrongswan_la_LIBADD += plugins/pubkey/libstrongswan-pubkey.la
393 SUBDIRS += plugins/pkcs1
395 libstrongswan_la_LIBADD += plugins/pkcs1/libstrongswan-pkcs1.la
400 SUBDIRS += plugins/pkcs7
402 libstrongswan_la_LIBADD += plugins/pkcs7/libstrongswan-pkcs7.la
407 SUBDIRS += plugins/pkcs8
409 libstrongswan_la_LIBADD += plugins/pkcs8/libstrongswan-pkcs8.la
414 SUBDIRS += plugins/pkcs12
416 libstrongswan_la_LIBADD += plugins/pkcs12/libstrongswan-pkcs12.la
421 SUBDIRS += plugins/pgp
423 libstrongswan_la_LIBADD += plugins/pgp/libstrongswan-pgp.la
428 SUBDIRS += plugins/dnskey
430 libstrongswan_la_LIBADD += plugins/dnskey/libstrongswan-dnskey.la
435 SUBDIRS += plugins/sshkey
437 libstrongswan_la_LIBADD += plugins/sshkey/libstrongswan-sshkey.la
442 SUBDIRS += plugins/pem
444 libstrongswan_la_LIBADD += plugins/pem/libstrongswan-pem.la
449 SUBDIRS += plugins/curl
451 libstrongswan_la_LIBADD += plugins/curl/libstrongswan-curl.la
456 SUBDIRS += plugins/files
458 libstrongswan_la_LIBADD += plugins/files/libstrongswan-files.la
463 SUBDIRS += plugins/winhttp
465 libstrongswan_la_LIBADD += plugins/winhttp/libstrongswan-winhttp.la
470 SUBDIRS += plugins/unbound
472 libstrongswan_la_LIBADD += plugins/unbound/libstrongswan-unbound.la
477 SUBDIRS += plugins/soup
479 libstrongswan_la_LIBADD += plugins/soup/libstrongswan-soup.la
484 SUBDIRS += plugins/ldap
486 libstrongswan_la_LIBADD += plugins/ldap/libstrongswan-ldap.la
491 SUBDIRS += plugins/mysql
493 libstrongswan_la_LIBADD += plugins/mysql/libstrongswan-mysql.la
498 SUBDIRS += plugins/sqlite
500 libstrongswan_la_LIBADD += plugins/sqlite/libstrongswan-sqlite.la
505 SUBDIRS += plugins/padlock
507 libstrongswan_la_LIBADD += plugins/padlock/libstrongswan-padlock.la
512 SUBDIRS += plugins/openssl
514 libstrongswan_la_LIBADD += plugins/openssl/libstrongswan-openssl.la
519 SUBDIRS += plugins/gcrypt
521 libstrongswan_la_LIBADD += plugins/gcrypt/libstrongswan-gcrypt.la
526 SUBDIRS += plugins/fips_prf
528 libstrongswan_la_LIBADD += plugins/fips_prf/libstrongswan-fips-prf.la
533 SUBDIRS += plugins/agent
535 libstrongswan_la_LIBADD += plugins/agent/libstrongswan-agent.la
540 SUBDIRS += plugins/keychain
542 libstrongswan_la_LIBADD += plugins/keychain/libstrongswan-keychain.la
547 SUBDIRS += plugins/pkcs11
549 libstrongswan_la_LIBADD += plugins/pkcs11/libstrongswan-pkcs11.la
554 SUBDIRS += plugins/chapoly
556 libstrongswan_la_LIBADD += plugins/chapoly/libstrongswan-chapoly.la
561 SUBDIRS += plugins/ctr
563 libstrongswan_la_LIBADD += plugins/ctr/libstrongswan-ctr.la
568 SUBDIRS += plugins/ccm
570 libstrongswan_la_LIBADD += plugins/ccm/libstrongswan-ccm.la
575 SUBDIRS += plugins/gcm
577 libstrongswan_la_LIBADD += plugins/gcm/libstrongswan-gcm.la
582 SUBDIRS += plugins/ntru
584 libstrongswan_la_LIBADD += plugins/ntru/libstrongswan-ntru.la
589 SUBDIRS += plugins/bliss
591 libstrongswan_la_LIBADD += plugins/bliss/libstrongswan-bliss.la
596 SUBDIRS += plugins/test_vectors
598 libstrongswan_la_LIBADD += plugins/test_vectors/libstrongswan-test-vectors.la
607 SUBDIRS += plugins/bliss/tests