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