1 lib_LTLIBRARIES = libstrongswan.la
3 libstrongswan_la_SOURCES = \
8 settings.h settings.c \
9 printf_hook.c printf_hook.h \
10 asn1/asn1.c asn1/asn1.h \
11 asn1/asn1_parser.c asn1/asn1_parser.h \
12 asn1/oid.c asn1/oid.h \
13 crypto/crypters/crypter.c crypto/crypters/crypter.h \
14 crypto/hashers/hasher.h crypto/hashers/hasher.c \
15 crypto/pkcs9.c crypto/pkcs9.h \
16 crypto/proposal/proposal_keywords.c crypto/proposal/proposal_keywords.h \
17 crypto/prfs/prf.c crypto/prfs/prf.h \
18 crypto/rngs/rng.c crypto/rngs/rng.h \
19 crypto/prf_plus.h crypto/prf_plus.c \
20 crypto/signers/signer.c crypto/signers/signer.h \
21 crypto/crypto_factory.c crypto/crypto_factory.h \
22 crypto/crypto_tester.c crypto/crypto_tester.h \
23 crypto/diffie_hellman.c crypto/diffie_hellman.h \
24 crypto/aead.c crypto/aead.h \
25 crypto/transform.c crypto/transform.h \
26 credentials/credential_factory.c credentials/credential_factory.h \
27 credentials/builder.c credentials/builder.h \
28 credentials/cred_encoding.c credentials/cred_encoding.h \
29 credentials/keys/private_key.c credentials/keys/private_key.h \
30 credentials/keys/public_key.c credentials/keys/public_key.h \
31 credentials/keys/shared_key.c credentials/keys/shared_key.h \
32 credentials/certificates/certificate.c credentials/certificates/certificate.h \
33 credentials/certificates/x509.h credentials/certificates/ac.h \
34 credentials/certificates/crl.h credentials/certificates/crl.c \
35 credentials/certificates/pkcs10.h \
36 credentials/certificates/ocsp_request.h \
37 credentials/certificates/ocsp_response.h credentials/certificates/ocsp_response.c \
38 credentials/certificates/pgp_certificate.h \
39 credentials/ietf_attributes/ietf_attributes.c credentials/ietf_attributes/ietf_attributes.h \
40 credentials/credential_manager.c credentials/credential_manager.h \
41 credentials/sets/auth_cfg_wrapper.c credentials/sets/auth_cfg_wrapper.h \
42 credentials/sets/ocsp_response_wrapper.c credentials/sets/ocsp_response_wrapper.h \
43 credentials/sets/cert_cache.c credentials/sets/cert_cache.h \
44 credentials/sets/mem_cred.c credentials/sets/mem_cred.h \
45 credentials/sets/callback_cred.c credentials/sets/callback_cred.h \
46 credentials/auth_cfg.c credentials/auth_cfg.h credentials/credential_set.h \
47 credentials/cert_validator.h \
48 database/database.h database/database_factory.h database/database_factory.c \
49 fetcher/fetcher.h fetcher/fetcher.c fetcher/fetcher_manager.h fetcher/fetcher_manager.c \
51 plugins/plugin_loader.c plugins/plugin_loader.h plugins/plugin.h \
52 processing/jobs/job.h processing/jobs/job.c \
53 processing/jobs/callback_job.c processing/jobs/callback_job.h \
54 processing/processor.c processing/processor.h \
55 processing/scheduler.c processing/scheduler.h \
56 selectors/traffic_selector.c selectors/traffic_selector.h \
57 threading/thread.h threading/thread.c \
58 threading/thread_value.h threading/thread_value.c \
59 threading/mutex.h threading/mutex.c threading/condvar.h \
60 threading/rwlock.h threading/rwlock.c \
61 threading/lock_profiler.h \
63 utils/host.c utils/host.h \
64 utils/identification.c utils/identification.h \
66 utils/lexparser.c utils/lexparser.h \
67 utils/linked_list.c utils/linked_list.h \
68 utils/hashtable.c utils/hashtable.h \
69 utils/enumerator.c utils/enumerator.h \
70 utils/optionsfrom.c utils/optionsfrom.h \
71 utils/backtrace.c utils/backtrace.h
74 library.lo : $(top_builddir)/config.status
76 libstrongswan_la_LIBADD = $(PTHREADLIB) $(DLLIB) $(BTLIB) $(SOCKLIB) $(RTLIB)
78 INCLUDES = -I$(top_srcdir)/src/libstrongswan
80 -DIPSEC_DIR=\"${ipsecdir}\" \
81 -DPLUGINDIR=\"${plugindir}\" \
82 -DSTRONGSWAN_CONF=\"${strongswan_conf}\"
85 AM_CFLAGS += -DLEAK_DETECTIVE
86 libstrongswan_la_SOURCES += \
87 utils/leak_detective.c utils/leak_detective.h
91 AM_CFLAGS += -DLOCK_PROFILER
95 AM_CFLAGS += -DINTEGRITY_TEST
96 libstrongswan_la_SOURCES += \
97 integrity_checker.c integrity_checker.h
101 libstrongswan_la_LIBADD += -lvstr
105 asn1/oid.txt asn1/oid.pl \
106 crypto/proposal/proposal_keywords.txt \
107 Android.mk AndroidConfigLocal.h
110 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
111 $(srcdir)/crypto/proposal/proposal_keywords.c
113 MAINTAINERCLEANFILES = \
114 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
115 $(srcdir)/crypto/proposal/proposal_keywords.c
117 $(srcdir)/asn1/oid.c : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
118 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
120 $(srcdir)/asn1/oid.h : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
121 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
123 $(srcdir)/crypto/proposal/proposal_keywords.c: $(srcdir)/crypto/proposal/proposal_keywords.txt \
124 $(srcdir)/crypto/proposal/proposal_keywords.h
125 $(GPERF) -N proposal_get_token -m 10 -C -G -c -t -D < \
126 $(srcdir)/crypto/proposal/proposal_keywords.txt > $@
129 # build plugins with their own Makefile
130 #######################################
139 SUBDIRS += plugins/af_alg
141 libstrongswan_la_LIBADD += plugins/af_alg/libstrongswan-af-alg.la
146 SUBDIRS += plugins/aes
148 libstrongswan_la_LIBADD += plugins/aes/libstrongswan-aes.la
153 SUBDIRS += plugins/des
155 libstrongswan_la_LIBADD += plugins/des/libstrongswan-des.la
160 SUBDIRS += plugins/blowfish
162 libstrongswan_la_LIBADD += plugins/blowfish/libstrongswan-blowfish.la
167 SUBDIRS += plugins/md4
169 libstrongswan_la_LIBADD += plugins/md4/libstrongswan-md4.la
174 SUBDIRS += plugins/md5
176 libstrongswan_la_LIBADD += plugins/md5/libstrongswan-md5.la
181 SUBDIRS += plugins/sha1
183 libstrongswan_la_LIBADD += plugins/sha1/libstrongswan-sha1.la
188 SUBDIRS += plugins/sha2
190 libstrongswan_la_LIBADD += plugins/sha2/libstrongswan-sha2.la
195 SUBDIRS += plugins/gmp
197 libstrongswan_la_LIBADD += plugins/gmp/libstrongswan-gmp.la
202 SUBDIRS += plugins/random
204 libstrongswan_la_LIBADD += plugins/random/libstrongswan-random.la
209 SUBDIRS += plugins/hmac
211 libstrongswan_la_LIBADD += plugins/hmac/libstrongswan-hmac.la
216 SUBDIRS += plugins/xcbc
218 libstrongswan_la_LIBADD += plugins/xcbc/libstrongswan-xcbc.la
223 SUBDIRS += plugins/x509
225 libstrongswan_la_LIBADD += plugins/x509/libstrongswan-x509.la
230 SUBDIRS += plugins/revocation
232 libstrongswan_la_LIBADD += plugins/revocation/libstrongswan-revocation.la
237 SUBDIRS += plugins/constraints
239 libstrongswan_la_LIBADD += plugins/constraints/libstrongswan-constraints.la
244 SUBDIRS += plugins/pubkey
246 libstrongswan_la_LIBADD += plugins/pubkey/libstrongswan-pubkey.la
251 SUBDIRS += plugins/pkcs1
253 libstrongswan_la_LIBADD += plugins/pkcs1/libstrongswan-pkcs1.la
258 SUBDIRS += plugins/pgp
260 libstrongswan_la_LIBADD += plugins/pgp/libstrongswan-pgp.la
265 SUBDIRS += plugins/dnskey
267 libstrongswan_la_LIBADD += plugins/dnskey/libstrongswan-dnskey.la
272 SUBDIRS += plugins/pem
274 libstrongswan_la_LIBADD += plugins/pem/libstrongswan-pem.la
279 SUBDIRS += plugins/curl
281 libstrongswan_la_LIBADD += plugins/curl/libstrongswan-curl.la
286 SUBDIRS += plugins/soup
288 libstrongswan_la_LIBADD += plugins/soup/libstrongswan-soup.la
293 SUBDIRS += plugins/ldap
295 libstrongswan_la_LIBADD += plugins/ldap/libstrongswan-ldap.la
300 SUBDIRS += plugins/mysql
302 libstrongswan_la_LIBADD += plugins/mysql/libstrongswan-mysql.la
307 SUBDIRS += plugins/sqlite
309 libstrongswan_la_LIBADD += plugins/sqlite/libstrongswan-sqlite.la
314 SUBDIRS += plugins/padlock
316 libstrongswan_la_LIBADD += plugins/padlock/libstrongswan-padlock.la
321 SUBDIRS += plugins/openssl
323 libstrongswan_la_LIBADD += plugins/openssl/libstrongswan-openssl.la
328 SUBDIRS += plugins/gcrypt
330 libstrongswan_la_LIBADD += plugins/gcrypt/libstrongswan-gcrypt.la
335 SUBDIRS += plugins/fips_prf
337 libstrongswan_la_LIBADD += plugins/fips_prf/libstrongswan-fips-prf.la
342 SUBDIRS += plugins/agent
344 libstrongswan_la_LIBADD += plugins/agent/libstrongswan-agent.la
349 SUBDIRS += plugins/pkcs11
351 libstrongswan_la_LIBADD += plugins/pkcs11/libstrongswan-pkcs11.la
356 SUBDIRS += plugins/ctr
358 libstrongswan_la_LIBADD += plugins/ctr/libstrongswan-ctr.la
363 SUBDIRS += plugins/ccm
365 libstrongswan_la_LIBADD += plugins/ccm/libstrongswan-ccm.la
370 SUBDIRS += plugins/gcm
372 libstrongswan_la_LIBADD += plugins/gcm/libstrongswan-gcm.la
377 SUBDIRS += plugins/test_vectors
379 libstrongswan_la_LIBADD += plugins/test_vectors/libstrongswan-test-vectors.la