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/proposal/proposal_keywords.c crypto/proposal/proposal_keywords_static.c \
10 crypto/prfs/prf.c crypto/prfs/mac_prf.c crypto/pkcs5.c \
11 crypto/rngs/rng.c crypto/prf_plus.c crypto/signers/signer.c \
12 crypto/signers/mac_signer.c crypto/crypto_factory.c crypto/crypto_tester.c \
13 crypto/diffie_hellman.c crypto/aead.c crypto/transform.c \
14 crypto/iv/iv_gen_rand.c crypto/iv/iv_gen_seq.c \
15 credentials/credential_factory.c credentials/builder.c \
16 credentials/cred_encoding.c credentials/keys/private_key.c \
17 credentials/keys/public_key.c credentials/keys/shared_key.c \
18 credentials/certificates/certificate.c credentials/certificates/crl.c \
19 credentials/certificates/ocsp_response.c \
20 credentials/containers/container.c credentials/containers/pkcs12.c \
21 credentials/ietf_attributes/ietf_attributes.c credentials/credential_manager.c \
22 credentials/sets/auth_cfg_wrapper.c credentials/sets/ocsp_response_wrapper.c \
23 credentials/sets/cert_cache.c credentials/sets/mem_cred.c \
24 credentials/sets/callback_cred.c credentials/auth_cfg.c database/database.c \
25 database/database_factory.c fetcher/fetcher.c fetcher/fetcher_manager.c eap/eap.c \
27 networking/host.c networking/host_resolver.c networking/packet.c \
28 networking/tun_device.c networking/streams/stream.c \
29 networking/streams/stream_service.c networking/streams/stream_manager.c \
30 pen/pen.c plugins/plugin_loader.c plugins/plugin_feature.c processing/jobs/job.c \
31 processing/jobs/callback_job.c processing/processor.c processing/scheduler.c \
32 processing/watcher.c resolver/resolver_manager.c resolver/rr_set.c \
33 selectors/traffic_selector.c threading/thread.c threading/thread_value.c \
34 threading/mutex.c threading/semaphore.c threading/rwlock.c threading/spinlock.c \
35 utils/utils.c utils/chunk.c utils/debug.c utils/enum.c utils/identification.c \
36 utils/lexparser.c utils/optionsfrom.c utils/capabilities.c utils/backtrace.c \
40 strongswan_includedir = ${dev_headers}
41 nobase_strongswan_include_HEADERS = \
43 asn1/asn1.h asn1/asn1_parser.h asn1/oid.h bio/bio_reader.h bio/bio_writer.h \
44 collections/blocking_queue.h collections/enumerator.h collections/hashtable.h \
45 collections/linked_list.h collections/array.h \
46 crypto/crypters/crypter.h crypto/hashers/hasher.h crypto/mac.h \
47 crypto/proposal/proposal_keywords.h crypto/proposal/proposal_keywords_static.h \
48 crypto/prfs/prf.h crypto/prfs/mac_prf.h crypto/rngs/rng.h crypto/nonce_gen.h \
49 crypto/prf_plus.h crypto/signers/signer.h crypto/signers/mac_signer.h \
50 crypto/crypto_factory.h crypto/crypto_tester.h crypto/diffie_hellman.h \
51 crypto/aead.h crypto/transform.h crypto/pkcs5.h crypto/iv/iv_gen.h \
52 crypto/iv/iv_gen_rand.h crypto/iv/iv_gen_seq.h \
53 credentials/credential_factory.h credentials/builder.h \
54 credentials/cred_encoding.h credentials/keys/private_key.h \
55 credentials/keys/public_key.h credentials/keys/shared_key.h \
56 credentials/certificates/certificate.h credentials/certificates/x509.h \
57 credentials/certificates/ac.h credentials/certificates/crl.h \
58 credentials/certificates/pkcs10.h credentials/certificates/ocsp_request.h \
59 credentials/certificates/ocsp_response.h \
60 credentials/certificates/pgp_certificate.h \
61 credentials/containers/container.h credentials/containers/pkcs7.h \
62 credentials/containers/pkcs12.h \
63 credentials/ietf_attributes/ietf_attributes.h \
64 credentials/credential_manager.h credentials/sets/auth_cfg_wrapper.h \
65 credentials/sets/ocsp_response_wrapper.h credentials/sets/cert_cache.h \
66 credentials/sets/mem_cred.h credentials/sets/callback_cred.h \
67 credentials/auth_cfg.h credentials/credential_set.h credentials/cert_validator.h \
68 database/database.h database/database_factory.h fetcher/fetcher.h \
69 fetcher/fetcher_manager.h eap/eap.h pen/pen.h ipsec/ipsec_types.h \
70 networking/host.h networking/host_resolver.h networking/packet.h \
71 networking/tun_device.h networking/streams/stream.h \
72 networking/streams/stream_service.h networking/streams/stream_manager.h \
73 resolver/resolver.h resolver/resolver_response.h resolver/rr_set.h \
74 resolver/rr.h resolver/resolver_manager.h \
75 plugins/plugin_loader.h plugins/plugin.h plugins/plugin_feature.h \
76 processing/jobs/job.h processing/jobs/callback_job.h processing/processor.h \
77 processing/scheduler.h processing/watcher.h selectors/traffic_selector.h \
78 threading/thread.h threading/thread_value.h \
79 threading/mutex.h threading/condvar.h threading/spinlock.h threading/semaphore.h \
80 threading/rwlock.h threading/rwlock_condvar.h threading/lock_profiler.h \
81 utils/utils.h utils/chunk.h utils/debug.h utils/enum.h utils/identification.h \
82 utils/lexparser.h utils/optionsfrom.h utils/capabilities.h utils/backtrace.h \
83 utils/leak_detective.h utils/printf_hook/printf_hook.h \
84 utils/printf_hook/printf_hook_vstr.h utils/printf_hook/printf_hook_builtin.h \
85 utils/settings.h utils/integrity_checker.h
88 library.lo : $(top_builddir)/config.status
90 libstrongswan_la_LIBADD = $(PTHREADLIB) $(DLLIB) $(BTLIB) $(SOCKLIB) $(RTLIB) $(BFDLIB) $(UNWINDLIB)
93 -I$(top_srcdir)/src/libstrongswan \
94 -DIPSEC_DIR=\"${ipsecdir}\" \
95 -DIPSEC_LIB_DIR=\"${ipseclibdir}\" \
96 -DPLUGINDIR=\"${plugindir}\" \
97 -DSTRONGSWAN_CONF=\"${strongswan_conf}\"
105 if USE_LEAK_DETECTIVE
106 AM_CPPFLAGS += -DLEAK_DETECTIVE
107 libstrongswan_la_SOURCES += utils/leak_detective.c
111 AM_CPPFLAGS += -DLOCK_PROFILER
114 if USE_INTEGRITY_TEST
115 AM_CPPFLAGS += -DINTEGRITY_TEST
116 libstrongswan_la_SOURCES += utils/integrity_checker.c
120 libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_vstr.c
121 libstrongswan_la_LIBADD += -lvstr
124 if USE_BUILTIN_PRINTF
125 libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_builtin.c
126 libstrongswan_la_LIBADD += -lm
129 if !USE_BUILTIN_PRINTF
131 libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_glibc.c
136 libstrongswan_la_LIBADD += -lcap
140 asn1/oid.txt asn1/oid.pl \
141 crypto/proposal/proposal_keywords_static.txt \
142 Android.mk AndroidConfigLocal.h
145 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
146 $(srcdir)/crypto/proposal/proposal_keywords_static.c
148 MAINTAINERCLEANFILES = \
149 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
150 $(srcdir)/crypto/proposal/proposal_keywords_static.c
152 $(srcdir)/asn1/oid.c : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
154 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
156 $(srcdir)/asn1/oid.h : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
158 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
160 $(srcdir)/crypto/proposal/proposal_keywords_static.c: $(srcdir)/crypto/proposal/proposal_keywords_static.txt \
161 $(srcdir)/crypto/proposal/proposal_keywords_static.h
163 $(GPERF) -N proposal_get_token_static -m 10 -C -G -c -t -D < \
164 $(srcdir)/crypto/proposal/proposal_keywords_static.txt > $@
167 # build plugins with their own Makefile
168 #######################################
177 SUBDIRS += plugins/af_alg
179 libstrongswan_la_LIBADD += plugins/af_alg/libstrongswan-af-alg.la
184 SUBDIRS += plugins/aes
186 libstrongswan_la_LIBADD += plugins/aes/libstrongswan-aes.la
191 SUBDIRS += plugins/des
193 libstrongswan_la_LIBADD += plugins/des/libstrongswan-des.la
198 SUBDIRS += plugins/blowfish
200 libstrongswan_la_LIBADD += plugins/blowfish/libstrongswan-blowfish.la
205 SUBDIRS += plugins/rc2
207 libstrongswan_la_LIBADD += plugins/rc2/libstrongswan-rc2.la
212 SUBDIRS += plugins/md4
214 libstrongswan_la_LIBADD += plugins/md4/libstrongswan-md4.la
219 SUBDIRS += plugins/md5
221 libstrongswan_la_LIBADD += plugins/md5/libstrongswan-md5.la
226 SUBDIRS += plugins/sha1
228 libstrongswan_la_LIBADD += plugins/sha1/libstrongswan-sha1.la
233 SUBDIRS += plugins/sha2
235 libstrongswan_la_LIBADD += plugins/sha2/libstrongswan-sha2.la
240 SUBDIRS += plugins/gmp
242 libstrongswan_la_LIBADD += plugins/gmp/libstrongswan-gmp.la
247 SUBDIRS += plugins/rdrand
249 libstrongswan_la_LIBADD += plugins/rdrand/libstrongswan-rdrand.la
254 SUBDIRS += plugins/random
256 libstrongswan_la_LIBADD += plugins/random/libstrongswan-random.la
261 SUBDIRS += plugins/nonce
263 libstrongswan_la_LIBADD += plugins/nonce/libstrongswan-nonce.la
268 SUBDIRS += plugins/hmac
270 libstrongswan_la_LIBADD += plugins/hmac/libstrongswan-hmac.la
275 SUBDIRS += plugins/cmac
277 libstrongswan_la_LIBADD += plugins/cmac/libstrongswan-cmac.la
282 SUBDIRS += plugins/xcbc
284 libstrongswan_la_LIBADD += plugins/xcbc/libstrongswan-xcbc.la
289 SUBDIRS += plugins/x509
291 libstrongswan_la_LIBADD += plugins/x509/libstrongswan-x509.la
296 SUBDIRS += plugins/revocation
298 libstrongswan_la_LIBADD += plugins/revocation/libstrongswan-revocation.la
303 SUBDIRS += plugins/constraints
305 libstrongswan_la_LIBADD += plugins/constraints/libstrongswan-constraints.la
310 SUBDIRS += plugins/pubkey
312 libstrongswan_la_LIBADD += plugins/pubkey/libstrongswan-pubkey.la
317 SUBDIRS += plugins/pkcs1
319 libstrongswan_la_LIBADD += plugins/pkcs1/libstrongswan-pkcs1.la
324 SUBDIRS += plugins/pkcs7
326 libstrongswan_la_LIBADD += plugins/pkcs7/libstrongswan-pkcs7.la
331 SUBDIRS += plugins/pkcs8
333 libstrongswan_la_LIBADD += plugins/pkcs8/libstrongswan-pkcs8.la
338 SUBDIRS += plugins/pkcs12
340 libstrongswan_la_LIBADD += plugins/pkcs12/libstrongswan-pkcs12.la
345 SUBDIRS += plugins/pgp
347 libstrongswan_la_LIBADD += plugins/pgp/libstrongswan-pgp.la
352 SUBDIRS += plugins/dnskey
354 libstrongswan_la_LIBADD += plugins/dnskey/libstrongswan-dnskey.la
359 SUBDIRS += plugins/sshkey
361 libstrongswan_la_LIBADD += plugins/sshkey/libstrongswan-sshkey.la
366 SUBDIRS += plugins/pem
368 libstrongswan_la_LIBADD += plugins/pem/libstrongswan-pem.la
373 SUBDIRS += plugins/curl
375 libstrongswan_la_LIBADD += plugins/curl/libstrongswan-curl.la
380 SUBDIRS += plugins/unbound
382 libstrongswan_la_LIBADD += plugins/unbound/libstrongswan-unbound.la
387 SUBDIRS += plugins/soup
389 libstrongswan_la_LIBADD += plugins/soup/libstrongswan-soup.la
394 SUBDIRS += plugins/ldap
396 libstrongswan_la_LIBADD += plugins/ldap/libstrongswan-ldap.la
401 SUBDIRS += plugins/mysql
403 libstrongswan_la_LIBADD += plugins/mysql/libstrongswan-mysql.la
408 SUBDIRS += plugins/sqlite
410 libstrongswan_la_LIBADD += plugins/sqlite/libstrongswan-sqlite.la
415 SUBDIRS += plugins/padlock
417 libstrongswan_la_LIBADD += plugins/padlock/libstrongswan-padlock.la
422 SUBDIRS += plugins/openssl
424 libstrongswan_la_LIBADD += plugins/openssl/libstrongswan-openssl.la
429 SUBDIRS += plugins/gcrypt
431 libstrongswan_la_LIBADD += plugins/gcrypt/libstrongswan-gcrypt.la
436 SUBDIRS += plugins/fips_prf
438 libstrongswan_la_LIBADD += plugins/fips_prf/libstrongswan-fips-prf.la
443 SUBDIRS += plugins/agent
445 libstrongswan_la_LIBADD += plugins/agent/libstrongswan-agent.la
450 SUBDIRS += plugins/keychain
452 libstrongswan_la_LIBADD += plugins/keychain/libstrongswan-keychain.la
457 SUBDIRS += plugins/pkcs11
459 libstrongswan_la_LIBADD += plugins/pkcs11/libstrongswan-pkcs11.la
464 SUBDIRS += plugins/ctr
466 libstrongswan_la_LIBADD += plugins/ctr/libstrongswan-ctr.la
471 SUBDIRS += plugins/ccm
473 libstrongswan_la_LIBADD += plugins/ccm/libstrongswan-ccm.la
478 SUBDIRS += plugins/gcm
480 libstrongswan_la_LIBADD += plugins/gcm/libstrongswan-gcm.la
485 SUBDIRS += plugins/ntru
487 libstrongswan_la_LIBADD += plugins/ntru/libstrongswan-ntru.la
492 SUBDIRS += plugins/test_vectors
494 libstrongswan_la_LIBADD += plugins/test_vectors/libstrongswan-test-vectors.la