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 networking/streams/stream.c \
28 networking/streams/stream_service.c networking/streams/stream_manager.c \
29 pen/pen.c plugins/plugin_loader.c plugins/plugin_feature.c processing/jobs/job.c \
30 processing/jobs/callback_job.c processing/processor.c processing/scheduler.c \
31 processing/watcher.c resolver/resolver_manager.c resolver/rr_set.c \
32 selectors/traffic_selector.c threading/thread.c threading/thread_value.c \
33 threading/mutex.c threading/semaphore.c threading/rwlock.c threading/spinlock.c \
34 utils/utils.c utils/chunk.c utils/debug.c utils/enum.c utils/identification.c \
35 utils/lexparser.c utils/optionsfrom.c utils/capabilities.c utils/backtrace.c \
39 strongswan_includedir = ${dev_headers}
40 nobase_strongswan_include_HEADERS = \
42 asn1/asn1.h asn1/asn1_parser.h asn1/oid.h bio/bio_reader.h bio/bio_writer.h \
43 collections/blocking_queue.h collections/enumerator.h collections/hashtable.h \
44 collections/linked_list.h collections/array.h \
45 crypto/crypters/crypter.h crypto/hashers/hasher.h crypto/mac.h \
46 crypto/proposal/proposal_keywords.h crypto/proposal/proposal_keywords_static.h \
47 crypto/prfs/prf.h crypto/prfs/mac_prf.h crypto/rngs/rng.h crypto/nonce_gen.h \
48 crypto/prf_plus.h crypto/signers/signer.h crypto/signers/mac_signer.h \
49 crypto/crypto_factory.h crypto/crypto_tester.h crypto/diffie_hellman.h \
50 crypto/aead.h crypto/transform.h crypto/pkcs5.h \
51 credentials/credential_factory.h credentials/builder.h \
52 credentials/cred_encoding.h credentials/keys/private_key.h \
53 credentials/keys/public_key.h credentials/keys/shared_key.h \
54 credentials/certificates/certificate.h credentials/certificates/x509.h \
55 credentials/certificates/ac.h credentials/certificates/crl.h \
56 credentials/certificates/pkcs10.h credentials/certificates/ocsp_request.h \
57 credentials/certificates/ocsp_response.h \
58 credentials/certificates/pgp_certificate.h \
59 credentials/containers/container.h credentials/containers/pkcs7.h \
60 credentials/containers/pkcs12.h \
61 credentials/ietf_attributes/ietf_attributes.h \
62 credentials/credential_manager.h credentials/sets/auth_cfg_wrapper.h \
63 credentials/sets/ocsp_response_wrapper.h credentials/sets/cert_cache.h \
64 credentials/sets/mem_cred.h credentials/sets/callback_cred.h \
65 credentials/auth_cfg.h credentials/credential_set.h credentials/cert_validator.h \
66 database/database.h database/database_factory.h fetcher/fetcher.h \
67 fetcher/fetcher_manager.h eap/eap.h pen/pen.h ipsec/ipsec_types.h \
68 networking/host.h networking/host_resolver.h networking/packet.h \
69 networking/tun_device.h networking/streams/stream.h \
70 networking/streams/stream_service.h networking/streams/stream_manager.h \
71 resolver/resolver.h resolver/resolver_response.h resolver/rr_set.h \
72 resolver/rr.h resolver/resolver_manager.h \
73 plugins/plugin_loader.h plugins/plugin.h plugins/plugin_feature.h \
74 processing/jobs/job.h processing/jobs/callback_job.h processing/processor.h \
75 processing/scheduler.h processing/watcher.h selectors/traffic_selector.h \
76 threading/thread.h threading/thread_value.h \
77 threading/mutex.h threading/condvar.h threading/spinlock.h threading/semaphore.h \
78 threading/rwlock.h threading/rwlock_condvar.h threading/lock_profiler.h \
79 utils/utils.h utils/chunk.h utils/debug.h utils/enum.h utils/identification.h \
80 utils/lexparser.h utils/optionsfrom.h utils/capabilities.h utils/backtrace.h \
81 utils/leak_detective.h utils/printf_hook/printf_hook.h \
82 utils/printf_hook/printf_hook_vstr.h utils/printf_hook/printf_hook_builtin.h \
83 utils/settings.h utils/integrity_checker.h
86 library.lo : $(top_builddir)/config.status
88 libstrongswan_la_LIBADD = $(PTHREADLIB) $(DLLIB) $(BTLIB) $(SOCKLIB) $(RTLIB) $(BFDLIB) $(UNWINDLIB)
91 -I$(top_srcdir)/src/libstrongswan \
92 -DIPSEC_DIR=\"${ipsecdir}\" \
93 -DIPSEC_LIB_DIR=\"${ipseclibdir}\" \
94 -DPLUGINDIR=\"${plugindir}\" \
95 -DSTRONGSWAN_CONF=\"${strongswan_conf}\"
103 if USE_LEAK_DETECTIVE
104 AM_CPPFLAGS += -DLEAK_DETECTIVE
105 libstrongswan_la_SOURCES += utils/leak_detective.c
109 AM_CPPFLAGS += -DLOCK_PROFILER
112 if USE_INTEGRITY_TEST
113 AM_CPPFLAGS += -DINTEGRITY_TEST
114 libstrongswan_la_SOURCES += utils/integrity_checker.c
118 libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_vstr.c
119 libstrongswan_la_LIBADD += -lvstr
122 if USE_BUILTIN_PRINTF
123 libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_builtin.c
124 libstrongswan_la_LIBADD += -lm
127 if !USE_BUILTIN_PRINTF
129 libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_glibc.c
134 libstrongswan_la_LIBADD += -lcap
138 asn1/oid.txt asn1/oid.pl \
139 crypto/proposal/proposal_keywords_static.txt \
140 Android.mk AndroidConfigLocal.h
143 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
144 $(srcdir)/crypto/proposal/proposal_keywords_static.c
146 MAINTAINERCLEANFILES = \
147 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
148 $(srcdir)/crypto/proposal/proposal_keywords_static.c
150 $(srcdir)/asn1/oid.c : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
152 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
154 $(srcdir)/asn1/oid.h : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
156 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
158 $(srcdir)/crypto/proposal/proposal_keywords_static.c: $(srcdir)/crypto/proposal/proposal_keywords_static.txt \
159 $(srcdir)/crypto/proposal/proposal_keywords_static.h
161 $(GPERF) -N proposal_get_token_static -m 10 -C -G -c -t -D < \
162 $(srcdir)/crypto/proposal/proposal_keywords_static.txt > $@
165 # build plugins with their own Makefile
166 #######################################
175 SUBDIRS += plugins/af_alg
177 libstrongswan_la_LIBADD += plugins/af_alg/libstrongswan-af-alg.la
182 SUBDIRS += plugins/aes
184 libstrongswan_la_LIBADD += plugins/aes/libstrongswan-aes.la
189 SUBDIRS += plugins/des
191 libstrongswan_la_LIBADD += plugins/des/libstrongswan-des.la
196 SUBDIRS += plugins/blowfish
198 libstrongswan_la_LIBADD += plugins/blowfish/libstrongswan-blowfish.la
203 SUBDIRS += plugins/rc2
205 libstrongswan_la_LIBADD += plugins/rc2/libstrongswan-rc2.la
210 SUBDIRS += plugins/md4
212 libstrongswan_la_LIBADD += plugins/md4/libstrongswan-md4.la
217 SUBDIRS += plugins/md5
219 libstrongswan_la_LIBADD += plugins/md5/libstrongswan-md5.la
224 SUBDIRS += plugins/sha1
226 libstrongswan_la_LIBADD += plugins/sha1/libstrongswan-sha1.la
231 SUBDIRS += plugins/sha2
233 libstrongswan_la_LIBADD += plugins/sha2/libstrongswan-sha2.la
238 SUBDIRS += plugins/gmp
240 libstrongswan_la_LIBADD += plugins/gmp/libstrongswan-gmp.la
245 SUBDIRS += plugins/rdrand
247 libstrongswan_la_LIBADD += plugins/rdrand/libstrongswan-rdrand.la
252 SUBDIRS += plugins/random
254 libstrongswan_la_LIBADD += plugins/random/libstrongswan-random.la
259 SUBDIRS += plugins/nonce
261 libstrongswan_la_LIBADD += plugins/nonce/libstrongswan-nonce.la
266 SUBDIRS += plugins/hmac
268 libstrongswan_la_LIBADD += plugins/hmac/libstrongswan-hmac.la
273 SUBDIRS += plugins/cmac
275 libstrongswan_la_LIBADD += plugins/cmac/libstrongswan-cmac.la
280 SUBDIRS += plugins/xcbc
282 libstrongswan_la_LIBADD += plugins/xcbc/libstrongswan-xcbc.la
287 SUBDIRS += plugins/x509
289 libstrongswan_la_LIBADD += plugins/x509/libstrongswan-x509.la
294 SUBDIRS += plugins/revocation
296 libstrongswan_la_LIBADD += plugins/revocation/libstrongswan-revocation.la
301 SUBDIRS += plugins/constraints
303 libstrongswan_la_LIBADD += plugins/constraints/libstrongswan-constraints.la
308 SUBDIRS += plugins/pubkey
310 libstrongswan_la_LIBADD += plugins/pubkey/libstrongswan-pubkey.la
315 SUBDIRS += plugins/pkcs1
317 libstrongswan_la_LIBADD += plugins/pkcs1/libstrongswan-pkcs1.la
322 SUBDIRS += plugins/pkcs7
324 libstrongswan_la_LIBADD += plugins/pkcs7/libstrongswan-pkcs7.la
329 SUBDIRS += plugins/pkcs8
331 libstrongswan_la_LIBADD += plugins/pkcs8/libstrongswan-pkcs8.la
336 SUBDIRS += plugins/pkcs12
338 libstrongswan_la_LIBADD += plugins/pkcs12/libstrongswan-pkcs12.la
343 SUBDIRS += plugins/pgp
345 libstrongswan_la_LIBADD += plugins/pgp/libstrongswan-pgp.la
350 SUBDIRS += plugins/dnskey
352 libstrongswan_la_LIBADD += plugins/dnskey/libstrongswan-dnskey.la
357 SUBDIRS += plugins/sshkey
359 libstrongswan_la_LIBADD += plugins/sshkey/libstrongswan-sshkey.la
364 SUBDIRS += plugins/pem
366 libstrongswan_la_LIBADD += plugins/pem/libstrongswan-pem.la
371 SUBDIRS += plugins/curl
373 libstrongswan_la_LIBADD += plugins/curl/libstrongswan-curl.la
378 SUBDIRS += plugins/unbound
380 libstrongswan_la_LIBADD += plugins/unbound/libstrongswan-unbound.la
385 SUBDIRS += plugins/soup
387 libstrongswan_la_LIBADD += plugins/soup/libstrongswan-soup.la
392 SUBDIRS += plugins/ldap
394 libstrongswan_la_LIBADD += plugins/ldap/libstrongswan-ldap.la
399 SUBDIRS += plugins/mysql
401 libstrongswan_la_LIBADD += plugins/mysql/libstrongswan-mysql.la
406 SUBDIRS += plugins/sqlite
408 libstrongswan_la_LIBADD += plugins/sqlite/libstrongswan-sqlite.la
413 SUBDIRS += plugins/padlock
415 libstrongswan_la_LIBADD += plugins/padlock/libstrongswan-padlock.la
420 SUBDIRS += plugins/openssl
422 libstrongswan_la_LIBADD += plugins/openssl/libstrongswan-openssl.la
427 SUBDIRS += plugins/gcrypt
429 libstrongswan_la_LIBADD += plugins/gcrypt/libstrongswan-gcrypt.la
434 SUBDIRS += plugins/fips_prf
436 libstrongswan_la_LIBADD += plugins/fips_prf/libstrongswan-fips-prf.la
441 SUBDIRS += plugins/agent
443 libstrongswan_la_LIBADD += plugins/agent/libstrongswan-agent.la
448 SUBDIRS += plugins/keychain
450 libstrongswan_la_LIBADD += plugins/keychain/libstrongswan-keychain.la
455 SUBDIRS += plugins/pkcs11
457 libstrongswan_la_LIBADD += plugins/pkcs11/libstrongswan-pkcs11.la
462 SUBDIRS += plugins/ctr
464 libstrongswan_la_LIBADD += plugins/ctr/libstrongswan-ctr.la
469 SUBDIRS += plugins/ccm
471 libstrongswan_la_LIBADD += plugins/ccm/libstrongswan-ccm.la
476 SUBDIRS += plugins/gcm
478 libstrongswan_la_LIBADD += plugins/gcm/libstrongswan-gcm.la
483 SUBDIRS += plugins/test_vectors
485 libstrongswan_la_LIBADD += plugins/test_vectors/libstrongswan-test-vectors.la