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 \
7 collections/linked_list.c crypto/crypters/crypter.c crypto/hashers/hasher.c \
8 crypto/proposal/proposal_keywords.c crypto/proposal/proposal_keywords_static.c \
9 crypto/prfs/prf.c crypto/prfs/mac_prf.c \
10 crypto/rngs/rng.c crypto/prf_plus.c crypto/signers/signer.c \
11 crypto/signers/mac_signer.c crypto/crypto_factory.c crypto/crypto_tester.c \
12 crypto/diffie_hellman.c crypto/aead.c crypto/transform.c \
13 credentials/credential_factory.c credentials/builder.c \
14 credentials/cred_encoding.c credentials/keys/private_key.c \
15 credentials/keys/public_key.c credentials/keys/shared_key.c \
16 credentials/certificates/certificate.c credentials/certificates/crl.c \
17 credentials/certificates/ocsp_response.c \
18 credentials/containers/container.c \
19 credentials/ietf_attributes/ietf_attributes.c credentials/credential_manager.c \
20 credentials/sets/auth_cfg_wrapper.c credentials/sets/ocsp_response_wrapper.c \
21 credentials/sets/cert_cache.c credentials/sets/mem_cred.c \
22 credentials/sets/callback_cred.c credentials/auth_cfg.c database/database.c \
23 database/database_factory.c fetcher/fetcher.c fetcher/fetcher_manager.c eap/eap.c \
25 networking/host.c networking/host_resolver.c networking/packet.c \
26 networking/tun_device.c \
27 pen/pen.c plugins/plugin_loader.c plugins/plugin_feature.c processing/jobs/job.c \
28 processing/jobs/callback_job.c processing/processor.c processing/scheduler.c \
29 resolver/resolver_manager.c resolver/rr_set.c \
30 selectors/traffic_selector.c threading/thread.c threading/thread_value.c \
31 threading/mutex.c threading/semaphore.c threading/rwlock.c threading/spinlock.c \
32 utils/utils.c utils/chunk.c utils/debug.c utils/enum.c utils/identification.c \
33 utils/lexparser.c utils/optionsfrom.c utils/capabilities.c utils/backtrace.c \
34 utils/printf_hook.c utils/settings.c
37 strongswan_includedir = ${dev_headers}
38 nobase_strongswan_include_HEADERS = \
40 asn1/asn1.h asn1/asn1_parser.h asn1/oid.h bio/bio_reader.h bio/bio_writer.h \
41 collections/blocking_queue.h collections/enumerator.h collections/hashtable.h \
42 collections/linked_list.h \
43 crypto/crypters/crypter.h crypto/hashers/hasher.h crypto/mac.h \
44 crypto/proposal/proposal_keywords.h crypto/proposal/proposal_keywords_static.h \
45 crypto/prfs/prf.h crypto/prfs/mac_prf.h crypto/rngs/rng.h crypto/nonce_gen.h \
46 crypto/prf_plus.h crypto/signers/signer.h crypto/signers/mac_signer.h \
47 crypto/crypto_factory.h crypto/crypto_tester.h crypto/diffie_hellman.h \
48 crypto/aead.h crypto/transform.h \
49 credentials/credential_factory.h credentials/builder.h \
50 credentials/cred_encoding.h credentials/keys/private_key.h \
51 credentials/keys/public_key.h credentials/keys/shared_key.h \
52 credentials/certificates/certificate.h credentials/certificates/x509.h \
53 credentials/certificates/ac.h credentials/certificates/crl.h \
54 credentials/certificates/pkcs10.h credentials/certificates/ocsp_request.h \
55 credentials/certificates/ocsp_response.h \
56 credentials/certificates/pgp_certificate.h \
57 credentials/containers/container.h credentials/containers/pkcs7.h \
58 credentials/ietf_attributes/ietf_attributes.h \
59 credentials/credential_manager.h credentials/sets/auth_cfg_wrapper.h \
60 credentials/sets/ocsp_response_wrapper.h credentials/sets/cert_cache.h \
61 credentials/sets/mem_cred.h credentials/sets/callback_cred.h \
62 credentials/auth_cfg.h credentials/credential_set.h credentials/cert_validator.h \
63 database/database.h database/database_factory.h fetcher/fetcher.h \
64 fetcher/fetcher_manager.h eap/eap.h pen/pen.h ipsec/ipsec_types.h \
65 networking/host.h networking/host_resolver.h networking/packet.h \
66 networking/tun_device.h \
67 resolver/resolver.h resolver/resolver_response.h resolver/rr_set.h \
68 resolver/rr.h resolver/resolver_manager.h \
69 plugins/plugin_loader.h plugins/plugin.h plugins/plugin_feature.h \
70 processing/jobs/job.h processing/jobs/callback_job.h processing/processor.h \
71 processing/scheduler.h selectors/traffic_selector.h \
72 threading/thread.h threading/thread_value.h \
73 threading/mutex.h threading/condvar.h threading/spinlock.h threading/semaphore.h \
74 threading/rwlock.h threading/rwlock_condvar.h threading/lock_profiler.h \
75 utils/utils.h utils/chunk.h utils/debug.h utils/enum.h utils/identification.h \
76 utils/lexparser.h utils/optionsfrom.h utils/capabilities.h utils/backtrace.h \
77 utils/leak_detective.h utils/printf_hook.h utils/settings.h utils/integrity_checker.h
80 library.lo : $(top_builddir)/config.status
82 libstrongswan_la_LIBADD = $(PTHREADLIB) $(DLLIB) $(BTLIB) $(SOCKLIB) $(RTLIB) $(BFDLIB) $(UNWINDLIB)
84 INCLUDES = -I$(top_srcdir)/src/libstrongswan
86 -DIPSEC_DIR=\"${ipsecdir}\" \
87 -DIPSEC_LIB_DIR=\"${ipseclibdir}\" \
88 -DPLUGINDIR=\"${plugindir}\" \
89 -DSTRONGSWAN_CONF=\"${strongswan_conf}\"
92 AM_CFLAGS += -DLEAK_DETECTIVE
93 libstrongswan_la_SOURCES += utils/leak_detective.c
97 AM_CFLAGS += -DLOCK_PROFILER
100 if USE_INTEGRITY_TEST
101 AM_CFLAGS += -DINTEGRITY_TEST
102 libstrongswan_la_SOURCES += utils/integrity_checker.c
106 libstrongswan_la_LIBADD += -lvstr
110 libstrongswan_la_LIBADD += -lcap
114 asn1/oid.txt asn1/oid.pl \
115 crypto/proposal/proposal_keywords_static.txt \
116 Android.mk AndroidConfigLocal.h
119 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
120 $(srcdir)/crypto/proposal/proposal_keywords_static.c
122 MAINTAINERCLEANFILES = \
123 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
124 $(srcdir)/crypto/proposal/proposal_keywords_static.c
126 $(srcdir)/asn1/oid.c : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
128 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
130 $(srcdir)/asn1/oid.h : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
132 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
134 $(srcdir)/crypto/proposal/proposal_keywords_static.c: $(srcdir)/crypto/proposal/proposal_keywords_static.txt \
135 $(srcdir)/crypto/proposal/proposal_keywords_static.h
137 $(GPERF) -N proposal_get_token_static -m 10 -C -G -c -t -D < \
138 $(srcdir)/crypto/proposal/proposal_keywords_static.txt > $@
141 # build plugins with their own Makefile
142 #######################################
151 SUBDIRS += plugins/af_alg
153 libstrongswan_la_LIBADD += plugins/af_alg/libstrongswan-af-alg.la
158 SUBDIRS += plugins/aes
160 libstrongswan_la_LIBADD += plugins/aes/libstrongswan-aes.la
165 SUBDIRS += plugins/des
167 libstrongswan_la_LIBADD += plugins/des/libstrongswan-des.la
172 SUBDIRS += plugins/blowfish
174 libstrongswan_la_LIBADD += plugins/blowfish/libstrongswan-blowfish.la
179 SUBDIRS += plugins/md4
181 libstrongswan_la_LIBADD += plugins/md4/libstrongswan-md4.la
186 SUBDIRS += plugins/md5
188 libstrongswan_la_LIBADD += plugins/md5/libstrongswan-md5.la
193 SUBDIRS += plugins/sha1
195 libstrongswan_la_LIBADD += plugins/sha1/libstrongswan-sha1.la
200 SUBDIRS += plugins/sha2
202 libstrongswan_la_LIBADD += plugins/sha2/libstrongswan-sha2.la
207 SUBDIRS += plugins/gmp
209 libstrongswan_la_LIBADD += plugins/gmp/libstrongswan-gmp.la
214 SUBDIRS += plugins/rdrand
216 libstrongswan_la_LIBADD += plugins/rdrand/libstrongswan-rdrand.la
221 SUBDIRS += plugins/random
223 libstrongswan_la_LIBADD += plugins/random/libstrongswan-random.la
228 SUBDIRS += plugins/nonce
230 libstrongswan_la_LIBADD += plugins/nonce/libstrongswan-nonce.la
235 SUBDIRS += plugins/hmac
237 libstrongswan_la_LIBADD += plugins/hmac/libstrongswan-hmac.la
242 SUBDIRS += plugins/cmac
244 libstrongswan_la_LIBADD += plugins/cmac/libstrongswan-cmac.la
249 SUBDIRS += plugins/xcbc
251 libstrongswan_la_LIBADD += plugins/xcbc/libstrongswan-xcbc.la
256 SUBDIRS += plugins/x509
258 libstrongswan_la_LIBADD += plugins/x509/libstrongswan-x509.la
263 SUBDIRS += plugins/revocation
265 libstrongswan_la_LIBADD += plugins/revocation/libstrongswan-revocation.la
270 SUBDIRS += plugins/constraints
272 libstrongswan_la_LIBADD += plugins/constraints/libstrongswan-constraints.la
277 SUBDIRS += plugins/pubkey
279 libstrongswan_la_LIBADD += plugins/pubkey/libstrongswan-pubkey.la
284 SUBDIRS += plugins/pkcs1
286 libstrongswan_la_LIBADD += plugins/pkcs1/libstrongswan-pkcs1.la
291 SUBDIRS += plugins/pkcs7
293 libstrongswan_la_LIBADD += plugins/pkcs7/libstrongswan-pkcs7.la
298 SUBDIRS += plugins/pkcs8
300 libstrongswan_la_LIBADD += plugins/pkcs8/libstrongswan-pkcs8.la
305 SUBDIRS += plugins/pgp
307 libstrongswan_la_LIBADD += plugins/pgp/libstrongswan-pgp.la
312 SUBDIRS += plugins/dnskey
314 libstrongswan_la_LIBADD += plugins/dnskey/libstrongswan-dnskey.la
319 SUBDIRS += plugins/pem
321 libstrongswan_la_LIBADD += plugins/pem/libstrongswan-pem.la
326 SUBDIRS += plugins/curl
328 libstrongswan_la_LIBADD += plugins/curl/libstrongswan-curl.la
333 SUBDIRS += plugins/unbound
335 libstrongswan_la_LIBADD += plugins/unbound/libstrongswan-unbound.la
340 SUBDIRS += plugins/soup
342 libstrongswan_la_LIBADD += plugins/soup/libstrongswan-soup.la
347 SUBDIRS += plugins/ldap
349 libstrongswan_la_LIBADD += plugins/ldap/libstrongswan-ldap.la
354 SUBDIRS += plugins/mysql
356 libstrongswan_la_LIBADD += plugins/mysql/libstrongswan-mysql.la
361 SUBDIRS += plugins/sqlite
363 libstrongswan_la_LIBADD += plugins/sqlite/libstrongswan-sqlite.la
368 SUBDIRS += plugins/padlock
370 libstrongswan_la_LIBADD += plugins/padlock/libstrongswan-padlock.la
375 SUBDIRS += plugins/openssl
377 libstrongswan_la_LIBADD += plugins/openssl/libstrongswan-openssl.la
382 SUBDIRS += plugins/gcrypt
384 libstrongswan_la_LIBADD += plugins/gcrypt/libstrongswan-gcrypt.la
389 SUBDIRS += plugins/fips_prf
391 libstrongswan_la_LIBADD += plugins/fips_prf/libstrongswan-fips-prf.la
396 SUBDIRS += plugins/agent
398 libstrongswan_la_LIBADD += plugins/agent/libstrongswan-agent.la
403 SUBDIRS += plugins/pkcs11
405 libstrongswan_la_LIBADD += plugins/pkcs11/libstrongswan-pkcs11.la
410 SUBDIRS += plugins/ctr
412 libstrongswan_la_LIBADD += plugins/ctr/libstrongswan-ctr.la
417 SUBDIRS += plugins/ccm
419 libstrongswan_la_LIBADD += plugins/ccm/libstrongswan-ccm.la
424 SUBDIRS += plugins/gcm
426 libstrongswan_la_LIBADD += plugins/gcm/libstrongswan-gcm.la
431 SUBDIRS += plugins/test_vectors
433 libstrongswan_la_LIBADD += plugins/test_vectors/libstrongswan-test-vectors.la