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