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