1 ipseclib_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 bio/bio_reader.h bio/bio_reader.c bio/bio_writer.h bio/bio_writer.c \
14 crypto/crypters/crypter.c crypto/crypters/crypter.h \
15 crypto/hashers/hasher.h crypto/hashers/hasher.c \
16 crypto/pkcs9.c crypto/pkcs9.h \
17 crypto/proposal/proposal_keywords.c crypto/proposal/proposal_keywords.h \
18 crypto/prfs/prf.c crypto/prfs/prf.h \
19 crypto/rngs/rng.c crypto/rngs/rng.h \
20 crypto/prf_plus.h crypto/prf_plus.c \
21 crypto/signers/signer.c crypto/signers/signer.h \
22 crypto/crypto_factory.c crypto/crypto_factory.h \
23 crypto/crypto_tester.c crypto/crypto_tester.h \
24 crypto/diffie_hellman.c crypto/diffie_hellman.h \
25 crypto/aead.c crypto/aead.h \
26 crypto/transform.c crypto/transform.h \
27 credentials/credential_factory.c credentials/credential_factory.h \
28 credentials/builder.c credentials/builder.h \
29 credentials/cred_encoding.c credentials/cred_encoding.h \
30 credentials/keys/private_key.c credentials/keys/private_key.h \
31 credentials/keys/public_key.c credentials/keys/public_key.h \
32 credentials/keys/shared_key.c credentials/keys/shared_key.h \
33 credentials/certificates/certificate.c credentials/certificates/certificate.h \
34 credentials/certificates/x509.h credentials/certificates/ac.h \
35 credentials/certificates/crl.h credentials/certificates/crl.c \
36 credentials/certificates/pkcs10.h \
37 credentials/certificates/ocsp_request.h \
38 credentials/certificates/ocsp_response.h credentials/certificates/ocsp_response.c \
39 credentials/certificates/pgp_certificate.h \
40 credentials/ietf_attributes/ietf_attributes.c credentials/ietf_attributes/ietf_attributes.h \
41 credentials/credential_manager.c credentials/credential_manager.h \
42 credentials/sets/auth_cfg_wrapper.c credentials/sets/auth_cfg_wrapper.h \
43 credentials/sets/ocsp_response_wrapper.c credentials/sets/ocsp_response_wrapper.h \
44 credentials/sets/cert_cache.c credentials/sets/cert_cache.h \
45 credentials/sets/mem_cred.c credentials/sets/mem_cred.h \
46 credentials/sets/callback_cred.c credentials/sets/callback_cred.h \
47 credentials/auth_cfg.c credentials/auth_cfg.h credentials/credential_set.h \
48 credentials/cert_validator.h \
49 database/database.h database/database_factory.h database/database_factory.c \
50 fetcher/fetcher.h fetcher/fetcher.c fetcher/fetcher_manager.h fetcher/fetcher_manager.c \
53 plugins/plugin_loader.c plugins/plugin_loader.h plugins/plugin.h \
54 processing/jobs/job.h processing/jobs/job.c \
55 processing/jobs/callback_job.c processing/jobs/callback_job.h \
56 processing/processor.c processing/processor.h \
57 processing/scheduler.c processing/scheduler.h \
58 selectors/traffic_selector.c selectors/traffic_selector.h \
59 threading/thread.h threading/thread.c \
60 threading/thread_value.h threading/thread_value.c \
61 threading/mutex.h threading/mutex.c threading/condvar.h \
62 threading/rwlock.h threading/rwlock.c \
63 threading/lock_profiler.h \
65 utils/host.c utils/host.h \
66 utils/identification.c utils/identification.h \
68 utils/lexparser.c utils/lexparser.h \
69 utils/linked_list.c utils/linked_list.h \
70 utils/hashtable.c utils/hashtable.h \
71 utils/enumerator.c utils/enumerator.h \
72 utils/optionsfrom.c utils/optionsfrom.h \
73 utils/backtrace.c utils/backtrace.h
76 library.lo : $(top_builddir)/config.status
78 libstrongswan_la_LIBADD = $(PTHREADLIB) $(DLLIB) $(BTLIB) $(SOCKLIB) $(RTLIB)
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 += \
90 utils/leak_detective.c utils/leak_detective.h
94 AM_CFLAGS += -DLOCK_PROFILER
98 AM_CFLAGS += -DINTEGRITY_TEST
99 libstrongswan_la_SOURCES += \
100 integrity_checker.c integrity_checker.h
104 libstrongswan_la_LIBADD += -lvstr
108 asn1/oid.txt asn1/oid.pl \
109 crypto/proposal/proposal_keywords.txt \
110 Android.mk AndroidConfigLocal.h
113 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
114 $(srcdir)/crypto/proposal/proposal_keywords.c
116 MAINTAINERCLEANFILES = \
117 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
118 $(srcdir)/crypto/proposal/proposal_keywords.c
120 $(srcdir)/asn1/oid.c : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
121 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
123 $(srcdir)/asn1/oid.h : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
124 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
126 $(srcdir)/crypto/proposal/proposal_keywords.c: $(srcdir)/crypto/proposal/proposal_keywords.txt \
127 $(srcdir)/crypto/proposal/proposal_keywords.h
128 $(GPERF) -N proposal_get_token -m 10 -C -G -c -t -D < \
129 $(srcdir)/crypto/proposal/proposal_keywords.txt > $@
132 # build plugins with their own Makefile
133 #######################################
142 SUBDIRS += plugins/af_alg
144 libstrongswan_la_LIBADD += plugins/af_alg/libstrongswan-af-alg.la
149 SUBDIRS += plugins/aes
151 libstrongswan_la_LIBADD += plugins/aes/libstrongswan-aes.la
156 SUBDIRS += plugins/des
158 libstrongswan_la_LIBADD += plugins/des/libstrongswan-des.la
163 SUBDIRS += plugins/blowfish
165 libstrongswan_la_LIBADD += plugins/blowfish/libstrongswan-blowfish.la
170 SUBDIRS += plugins/md4
172 libstrongswan_la_LIBADD += plugins/md4/libstrongswan-md4.la
177 SUBDIRS += plugins/md5
179 libstrongswan_la_LIBADD += plugins/md5/libstrongswan-md5.la
184 SUBDIRS += plugins/sha1
186 libstrongswan_la_LIBADD += plugins/sha1/libstrongswan-sha1.la
191 SUBDIRS += plugins/sha2
193 libstrongswan_la_LIBADD += plugins/sha2/libstrongswan-sha2.la
198 SUBDIRS += plugins/gmp
200 libstrongswan_la_LIBADD += plugins/gmp/libstrongswan-gmp.la
205 SUBDIRS += plugins/random
207 libstrongswan_la_LIBADD += plugins/random/libstrongswan-random.la
212 SUBDIRS += plugins/hmac
214 libstrongswan_la_LIBADD += plugins/hmac/libstrongswan-hmac.la
219 SUBDIRS += plugins/xcbc
221 libstrongswan_la_LIBADD += plugins/xcbc/libstrongswan-xcbc.la
226 SUBDIRS += plugins/x509
228 libstrongswan_la_LIBADD += plugins/x509/libstrongswan-x509.la
233 SUBDIRS += plugins/revocation
235 libstrongswan_la_LIBADD += plugins/revocation/libstrongswan-revocation.la
240 SUBDIRS += plugins/constraints
242 libstrongswan_la_LIBADD += plugins/constraints/libstrongswan-constraints.la
247 SUBDIRS += plugins/pubkey
249 libstrongswan_la_LIBADD += plugins/pubkey/libstrongswan-pubkey.la
254 SUBDIRS += plugins/pkcs1
256 libstrongswan_la_LIBADD += plugins/pkcs1/libstrongswan-pkcs1.la
261 SUBDIRS += plugins/pgp
263 libstrongswan_la_LIBADD += plugins/pgp/libstrongswan-pgp.la
268 SUBDIRS += plugins/dnskey
270 libstrongswan_la_LIBADD += plugins/dnskey/libstrongswan-dnskey.la
275 SUBDIRS += plugins/pem
277 libstrongswan_la_LIBADD += plugins/pem/libstrongswan-pem.la
282 SUBDIRS += plugins/curl
284 libstrongswan_la_LIBADD += plugins/curl/libstrongswan-curl.la
289 SUBDIRS += plugins/soup
291 libstrongswan_la_LIBADD += plugins/soup/libstrongswan-soup.la
296 SUBDIRS += plugins/ldap
298 libstrongswan_la_LIBADD += plugins/ldap/libstrongswan-ldap.la
303 SUBDIRS += plugins/mysql
305 libstrongswan_la_LIBADD += plugins/mysql/libstrongswan-mysql.la
310 SUBDIRS += plugins/sqlite
312 libstrongswan_la_LIBADD += plugins/sqlite/libstrongswan-sqlite.la
317 SUBDIRS += plugins/padlock
319 libstrongswan_la_LIBADD += plugins/padlock/libstrongswan-padlock.la
324 SUBDIRS += plugins/openssl
326 libstrongswan_la_LIBADD += plugins/openssl/libstrongswan-openssl.la
331 SUBDIRS += plugins/gcrypt
333 libstrongswan_la_LIBADD += plugins/gcrypt/libstrongswan-gcrypt.la
338 SUBDIRS += plugins/fips_prf
340 libstrongswan_la_LIBADD += plugins/fips_prf/libstrongswan-fips-prf.la
345 SUBDIRS += plugins/agent
347 libstrongswan_la_LIBADD += plugins/agent/libstrongswan-agent.la
352 SUBDIRS += plugins/pkcs11
354 libstrongswan_la_LIBADD += plugins/pkcs11/libstrongswan-pkcs11.la
359 SUBDIRS += plugins/ctr
361 libstrongswan_la_LIBADD += plugins/ctr/libstrongswan-ctr.la
366 SUBDIRS += plugins/ccm
368 libstrongswan_la_LIBADD += plugins/ccm/libstrongswan-ccm.la
373 SUBDIRS += plugins/gcm
375 libstrongswan_la_LIBADD += plugins/gcm/libstrongswan-gcm.la
380 SUBDIRS += plugins/test_vectors
382 libstrongswan_la_LIBADD += plugins/test_vectors/libstrongswan-test-vectors.la