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 \
8 collections/linked_list.c crypto/crypters/crypter.c crypto/hashers/hasher.c \
9 crypto/proposal/proposal_keywords.c crypto/proposal/proposal_keywords_static.c \
10 crypto/prfs/prf.c crypto/prfs/mac_prf.c crypto/pkcs5.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 crypto/iv/iv_gen_rand.c crypto/iv/iv_gen_seq.c \
15 credentials/credential_factory.c credentials/builder.c \
16 credentials/cred_encoding.c credentials/keys/private_key.c \
17 credentials/keys/public_key.c credentials/keys/shared_key.c \
18 credentials/certificates/certificate.c credentials/certificates/crl.c \
19 credentials/certificates/ocsp_response.c \
20 credentials/containers/container.c credentials/containers/pkcs12.c \
21 credentials/credential_manager.c \
22 credentials/sets/auth_cfg_wrapper.c credentials/sets/ocsp_response_wrapper.c \
23 credentials/sets/cert_cache.c credentials/sets/mem_cred.c \
24 credentials/sets/callback_cred.c credentials/auth_cfg.c database/database.c \
25 database/database_factory.c fetcher/fetcher.c fetcher/fetcher_manager.c eap/eap.c \
27 networking/host.c networking/host_resolver.c networking/packet.c \
28 networking/tun_device.c networking/streams/stream.c \
29 networking/streams/stream_service.c networking/streams/stream_manager.c \
30 pen/pen.c plugins/plugin_loader.c plugins/plugin_feature.c processing/jobs/job.c \
31 processing/jobs/callback_job.c processing/processor.c processing/scheduler.c \
32 processing/watcher.c resolver/resolver_manager.c resolver/rr_set.c \
33 selectors/traffic_selector.c settings/settings.c \
34 threading/thread.c threading/thread_value.c \
35 threading/mutex.c threading/semaphore.c threading/rwlock.c threading/spinlock.c \
36 utils/utils.c utils/chunk.c utils/debug.c utils/enum.c utils/identification.c \
37 utils/lexparser.c utils/optionsfrom.c utils/capabilities.c utils/backtrace.c \
38 utils/parser_helper.c utils/test.c utils/utils/strerror.c
41 strongswan_includedir = ${dev_headers}
42 nobase_strongswan_include_HEADERS = \
44 asn1/asn1.h asn1/asn1_parser.h asn1/oid.h bio/bio_reader.h bio/bio_writer.h \
45 collections/blocking_queue.h collections/enumerator.h collections/hashtable.h \
46 collections/linked_list.h collections/array.h \
47 crypto/crypters/crypter.h crypto/hashers/hasher.h crypto/mac.h \
48 crypto/proposal/proposal_keywords.h crypto/proposal/proposal_keywords_static.h \
49 crypto/prfs/prf.h crypto/prfs/mac_prf.h crypto/rngs/rng.h crypto/nonce_gen.h \
50 crypto/prf_plus.h crypto/signers/signer.h crypto/signers/mac_signer.h \
51 crypto/crypto_factory.h crypto/crypto_tester.h crypto/diffie_hellman.h \
52 crypto/aead.h crypto/transform.h crypto/pkcs5.h crypto/iv/iv_gen.h \
53 crypto/iv/iv_gen_rand.h crypto/iv/iv_gen_seq.h \
54 credentials/credential_factory.h credentials/builder.h \
55 credentials/cred_encoding.h credentials/keys/private_key.h \
56 credentials/keys/public_key.h credentials/keys/shared_key.h \
57 credentials/certificates/certificate.h credentials/certificates/x509.h \
58 credentials/certificates/ac.h credentials/certificates/crl.h \
59 credentials/certificates/pkcs10.h credentials/certificates/ocsp_request.h \
60 credentials/certificates/ocsp_response.h \
61 credentials/certificates/pgp_certificate.h \
62 credentials/containers/container.h credentials/containers/pkcs7.h \
63 credentials/containers/pkcs12.h \
64 credentials/credential_manager.h credentials/sets/auth_cfg_wrapper.h \
65 credentials/sets/ocsp_response_wrapper.h credentials/sets/cert_cache.h \
66 credentials/sets/mem_cred.h credentials/sets/callback_cred.h \
67 credentials/auth_cfg.h credentials/credential_set.h credentials/cert_validator.h \
68 database/database.h database/database_factory.h fetcher/fetcher.h \
69 fetcher/fetcher_manager.h eap/eap.h pen/pen.h ipsec/ipsec_types.h \
70 networking/host.h networking/host_resolver.h networking/packet.h \
71 networking/tun_device.h networking/streams/stream.h \
72 networking/streams/stream_service.h networking/streams/stream_manager.h \
73 resolver/resolver.h resolver/resolver_response.h resolver/rr_set.h \
74 resolver/rr.h resolver/resolver_manager.h \
75 plugins/plugin_loader.h plugins/plugin.h plugins/plugin_feature.h \
76 processing/jobs/job.h processing/jobs/callback_job.h processing/processor.h \
77 processing/scheduler.h processing/watcher.h selectors/traffic_selector.h \
78 settings/settings.h threading/thread.h threading/thread_value.h \
79 threading/mutex.h threading/condvar.h threading/spinlock.h threading/semaphore.h \
80 threading/rwlock.h threading/rwlock_condvar.h threading/lock_profiler.h \
81 utils/utils.h utils/chunk.h utils/debug.h utils/enum.h utils/identification.h \
82 utils/lexparser.h utils/optionsfrom.h utils/capabilities.h utils/backtrace.h \
83 utils/leak_detective.h utils/printf_hook/printf_hook.h \
84 utils/printf_hook/printf_hook_vstr.h utils/printf_hook/printf_hook_builtin.h \
85 utils/parser_helper.h utils/test.h utils/integrity_checker.h \
86 utils/utils/strerror.h
89 library.lo : $(top_builddir)/config.status
91 libstrongswan_la_LIBADD = $(PTHREADLIB) $(DLLIB) $(BTLIB) $(SOCKLIB) $(RTLIB) $(BFDLIB) $(UNWINDLIB)
94 -I$(top_srcdir)/src/libstrongswan \
95 -DIPSEC_DIR=\"${ipsecdir}\" \
96 -DIPSEC_LIB_DIR=\"${ipseclibdir}\" \
97 -DPLUGINDIR=\"${plugindir}\" \
98 -DSTRONGSWAN_CONF=\"${strongswan_conf}\"
106 if USE_LEAK_DETECTIVE
107 AM_CPPFLAGS += -DLEAK_DETECTIVE
108 libstrongswan_la_SOURCES += utils/leak_detective.c
112 AM_CPPFLAGS += -DLOCK_PROFILER
115 if USE_INTEGRITY_TEST
116 AM_CPPFLAGS += -DINTEGRITY_TEST
117 libstrongswan_la_SOURCES += utils/integrity_checker.c
121 libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_vstr.c
122 libstrongswan_la_LIBADD += -lvstr
125 if USE_BUILTIN_PRINTF
126 libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_builtin.c
127 libstrongswan_la_LIBADD += -lm
130 if !USE_BUILTIN_PRINTF
132 libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_glibc.c
137 libstrongswan_la_LIBADD += -lcap
141 asn1/oid.txt asn1/oid.pl \
142 crypto/proposal/proposal_keywords_static.txt \
143 Android.mk AndroidConfigLocal.h
146 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
147 $(srcdir)/crypto/proposal/proposal_keywords_static.c
149 MAINTAINERCLEANFILES = \
150 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
151 $(srcdir)/crypto/proposal/proposal_keywords_static.c
153 $(srcdir)/asn1/oid.c : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
155 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
157 $(srcdir)/asn1/oid.h : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
159 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
161 $(srcdir)/crypto/proposal/proposal_keywords_static.c: $(srcdir)/crypto/proposal/proposal_keywords_static.txt \
162 $(srcdir)/crypto/proposal/proposal_keywords_static.h
164 $(GPERF) -N proposal_get_token_static -m 10 -C -G -c -t -D < \
165 $(srcdir)/crypto/proposal/proposal_keywords_static.txt > $@
168 # build plugins with their own Makefile
169 #######################################
178 SUBDIRS += plugins/af_alg
180 libstrongswan_la_LIBADD += plugins/af_alg/libstrongswan-af-alg.la
185 SUBDIRS += plugins/aes
187 libstrongswan_la_LIBADD += plugins/aes/libstrongswan-aes.la
192 SUBDIRS += plugins/des
194 libstrongswan_la_LIBADD += plugins/des/libstrongswan-des.la
199 SUBDIRS += plugins/blowfish
201 libstrongswan_la_LIBADD += plugins/blowfish/libstrongswan-blowfish.la
206 SUBDIRS += plugins/rc2
208 libstrongswan_la_LIBADD += plugins/rc2/libstrongswan-rc2.la
213 SUBDIRS += plugins/md4
215 libstrongswan_la_LIBADD += plugins/md4/libstrongswan-md4.la
220 SUBDIRS += plugins/md5
222 libstrongswan_la_LIBADD += plugins/md5/libstrongswan-md5.la
227 SUBDIRS += plugins/sha1
229 libstrongswan_la_LIBADD += plugins/sha1/libstrongswan-sha1.la
234 SUBDIRS += plugins/sha2
236 libstrongswan_la_LIBADD += plugins/sha2/libstrongswan-sha2.la
241 SUBDIRS += plugins/gmp
243 libstrongswan_la_LIBADD += plugins/gmp/libstrongswan-gmp.la
248 SUBDIRS += plugins/rdrand
250 libstrongswan_la_LIBADD += plugins/rdrand/libstrongswan-rdrand.la
255 SUBDIRS += plugins/random
257 libstrongswan_la_LIBADD += plugins/random/libstrongswan-random.la
262 SUBDIRS += plugins/nonce
264 libstrongswan_la_LIBADD += plugins/nonce/libstrongswan-nonce.la
269 SUBDIRS += plugins/hmac
271 libstrongswan_la_LIBADD += plugins/hmac/libstrongswan-hmac.la
276 SUBDIRS += plugins/cmac
278 libstrongswan_la_LIBADD += plugins/cmac/libstrongswan-cmac.la
283 SUBDIRS += plugins/xcbc
285 libstrongswan_la_LIBADD += plugins/xcbc/libstrongswan-xcbc.la
290 SUBDIRS += plugins/x509
292 libstrongswan_la_LIBADD += plugins/x509/libstrongswan-x509.la
297 SUBDIRS += plugins/revocation
299 libstrongswan_la_LIBADD += plugins/revocation/libstrongswan-revocation.la
304 SUBDIRS += plugins/constraints
306 libstrongswan_la_LIBADD += plugins/constraints/libstrongswan-constraints.la
311 SUBDIRS += plugins/acert
313 libstrongswan_la_LIBADD += plugins/acert/libstrongswan-acert.la
318 SUBDIRS += plugins/pubkey
320 libstrongswan_la_LIBADD += plugins/pubkey/libstrongswan-pubkey.la
325 SUBDIRS += plugins/pkcs1
327 libstrongswan_la_LIBADD += plugins/pkcs1/libstrongswan-pkcs1.la
332 SUBDIRS += plugins/pkcs7
334 libstrongswan_la_LIBADD += plugins/pkcs7/libstrongswan-pkcs7.la
339 SUBDIRS += plugins/pkcs8
341 libstrongswan_la_LIBADD += plugins/pkcs8/libstrongswan-pkcs8.la
346 SUBDIRS += plugins/pkcs12
348 libstrongswan_la_LIBADD += plugins/pkcs12/libstrongswan-pkcs12.la
353 SUBDIRS += plugins/pgp
355 libstrongswan_la_LIBADD += plugins/pgp/libstrongswan-pgp.la
360 SUBDIRS += plugins/dnskey
362 libstrongswan_la_LIBADD += plugins/dnskey/libstrongswan-dnskey.la
367 SUBDIRS += plugins/sshkey
369 libstrongswan_la_LIBADD += plugins/sshkey/libstrongswan-sshkey.la
374 SUBDIRS += plugins/pem
376 libstrongswan_la_LIBADD += plugins/pem/libstrongswan-pem.la
381 SUBDIRS += plugins/curl
383 libstrongswan_la_LIBADD += plugins/curl/libstrongswan-curl.la
388 SUBDIRS += plugins/unbound
390 libstrongswan_la_LIBADD += plugins/unbound/libstrongswan-unbound.la
395 SUBDIRS += plugins/soup
397 libstrongswan_la_LIBADD += plugins/soup/libstrongswan-soup.la
402 SUBDIRS += plugins/ldap
404 libstrongswan_la_LIBADD += plugins/ldap/libstrongswan-ldap.la
409 SUBDIRS += plugins/mysql
411 libstrongswan_la_LIBADD += plugins/mysql/libstrongswan-mysql.la
416 SUBDIRS += plugins/sqlite
418 libstrongswan_la_LIBADD += plugins/sqlite/libstrongswan-sqlite.la
423 SUBDIRS += plugins/padlock
425 libstrongswan_la_LIBADD += plugins/padlock/libstrongswan-padlock.la
430 SUBDIRS += plugins/openssl
432 libstrongswan_la_LIBADD += plugins/openssl/libstrongswan-openssl.la
437 SUBDIRS += plugins/gcrypt
439 libstrongswan_la_LIBADD += plugins/gcrypt/libstrongswan-gcrypt.la
444 SUBDIRS += plugins/fips_prf
446 libstrongswan_la_LIBADD += plugins/fips_prf/libstrongswan-fips-prf.la
451 SUBDIRS += plugins/agent
453 libstrongswan_la_LIBADD += plugins/agent/libstrongswan-agent.la
458 SUBDIRS += plugins/keychain
460 libstrongswan_la_LIBADD += plugins/keychain/libstrongswan-keychain.la
465 SUBDIRS += plugins/pkcs11
467 libstrongswan_la_LIBADD += plugins/pkcs11/libstrongswan-pkcs11.la
472 SUBDIRS += plugins/ctr
474 libstrongswan_la_LIBADD += plugins/ctr/libstrongswan-ctr.la
479 SUBDIRS += plugins/ccm
481 libstrongswan_la_LIBADD += plugins/ccm/libstrongswan-ccm.la
486 SUBDIRS += plugins/gcm
488 libstrongswan_la_LIBADD += plugins/gcm/libstrongswan-gcm.la
493 SUBDIRS += plugins/ntru
495 libstrongswan_la_LIBADD += plugins/ntru/libstrongswan-ntru.la
500 SUBDIRS += plugins/test_vectors
502 libstrongswan_la_LIBADD += plugins/test_vectors/libstrongswan-test-vectors.la