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/hashers/hash_algorithm_set.c \
10 crypto/proposal/proposal_keywords.c crypto/proposal/proposal_keywords_static.c \
11 crypto/prfs/prf.c crypto/prfs/mac_prf.c crypto/pkcs5.c \
12 crypto/rngs/rng.c crypto/prf_plus.c crypto/signers/signer.c \
13 crypto/signers/mac_signer.c crypto/crypto_factory.c crypto/crypto_tester.c \
14 crypto/diffie_hellman.c crypto/aead.c crypto/transform.c \
15 crypto/iv/iv_gen.c crypto/iv/iv_gen_rand.c crypto/iv/iv_gen_seq.c \
16 crypto/mgf1/mgf1.c crypto/mgf1/mgf1_bitspender.c \
17 credentials/credential_factory.c credentials/builder.c \
18 credentials/cred_encoding.c credentials/keys/private_key.c \
19 credentials/keys/public_key.c credentials/keys/shared_key.c \
20 credentials/certificates/certificate.c credentials/certificates/crl.c \
21 credentials/certificates/ocsp_response.c \
22 credentials/containers/container.c credentials/containers/pkcs12.c \
23 credentials/credential_manager.c \
24 credentials/sets/auth_cfg_wrapper.c credentials/sets/ocsp_response_wrapper.c \
25 credentials/sets/cert_cache.c credentials/sets/mem_cred.c \
26 credentials/sets/callback_cred.c credentials/auth_cfg.c database/database.c \
27 database/database_factory.c fetcher/fetcher.c fetcher/fetcher_manager.c eap/eap.c \
29 networking/host.c networking/host_resolver.c networking/packet.c \
30 networking/tun_device.c networking/streams/stream_manager.c \
31 networking/streams/stream.c networking/streams/stream_service.c \
32 networking/streams/stream_tcp.c networking/streams/stream_service_tcp.c \
33 pen/pen.c plugins/plugin_loader.c plugins/plugin_feature.c processing/jobs/job.c \
34 processing/jobs/callback_job.c processing/processor.c processing/scheduler.c \
35 processing/watcher.c resolver/resolver_manager.c resolver/rr_set.c \
36 selectors/traffic_selector.c settings/settings.c settings/settings_types.c \
37 settings/settings_parser.y settings/settings_lexer.l utils/cpu_feature.c \
38 utils/utils.c utils/chunk.c utils/debug.c utils/enum.c utils/identification.c \
39 utils/lexparser.c utils/optionsfrom.c utils/capabilities.c utils/backtrace.c \
40 utils/parser_helper.c utils/test.c utils/process.c utils/utils/strerror.c
43 libstrongswan_la_SOURCES += \
45 threading/thread_value.c \
48 threading/spinlock.c \
49 threading/semaphore.c \
50 networking/streams/stream_unix.c \
51 networking/streams/stream_service_unix.c
54 # private header files
56 settings/settings_types.h
59 strongswan_includedir = ${dev_headers}
60 nobase_strongswan_include_HEADERS = \
62 asn1/asn1.h asn1/asn1_parser.h asn1/oid.h bio/bio_reader.h bio/bio_writer.h \
63 collections/blocking_queue.h collections/enumerator.h collections/hashtable.h \
64 collections/linked_list.h collections/array.h collections/dictionary.h \
65 crypto/crypters/crypter.h crypto/hashers/hasher.h \
66 crypto/hashers/hash_algorithm_set.h crypto/mac.h \
67 crypto/proposal/proposal_keywords.h crypto/proposal/proposal_keywords_static.h \
68 crypto/prfs/prf.h crypto/prfs/mac_prf.h crypto/rngs/rng.h crypto/nonce_gen.h \
69 crypto/prf_plus.h crypto/signers/signer.h crypto/signers/mac_signer.h \
70 crypto/crypto_factory.h crypto/crypto_tester.h crypto/diffie_hellman.h \
71 crypto/aead.h crypto/transform.h crypto/pkcs5.h crypto/iv/iv_gen.h \
72 crypto/iv/iv_gen_rand.h crypto/iv/iv_gen_seq.h \
73 crypto/mgf1/mgf1.h crypto/mgf1/mgf1_bitspender.h \
74 credentials/credential_factory.h credentials/builder.h \
75 credentials/cred_encoding.h credentials/keys/private_key.h \
76 credentials/keys/public_key.h credentials/keys/shared_key.h \
77 credentials/certificates/certificate.h credentials/certificates/x509.h \
78 credentials/certificates/ac.h credentials/certificates/crl.h \
79 credentials/certificates/pkcs10.h credentials/certificates/ocsp_request.h \
80 credentials/certificates/ocsp_response.h \
81 credentials/certificates/pgp_certificate.h \
82 credentials/containers/container.h credentials/containers/pkcs7.h \
83 credentials/containers/pkcs12.h \
84 credentials/credential_manager.h credentials/sets/auth_cfg_wrapper.h \
85 credentials/sets/ocsp_response_wrapper.h credentials/sets/cert_cache.h \
86 credentials/sets/mem_cred.h credentials/sets/callback_cred.h \
87 credentials/auth_cfg.h credentials/credential_set.h credentials/cert_validator.h \
88 database/database.h database/database_factory.h fetcher/fetcher.h \
89 fetcher/fetcher_manager.h eap/eap.h pen/pen.h ipsec/ipsec_types.h \
90 networking/host.h networking/host_resolver.h networking/packet.h \
91 networking/tun_device.h networking/streams/stream.h \
92 networking/streams/stream_unix.h networking/streams/stream_service_unix.h \
93 networking/streams/stream_tcp.h networking/streams/stream_service_tcp.h \
94 networking/streams/stream_service.h networking/streams/stream_manager.h \
95 resolver/resolver.h resolver/resolver_response.h resolver/rr_set.h \
96 resolver/rr.h resolver/resolver_manager.h \
97 plugins/plugin_loader.h plugins/plugin.h plugins/plugin_feature.h \
98 processing/jobs/job.h processing/jobs/callback_job.h processing/processor.h \
99 processing/scheduler.h processing/watcher.h selectors/traffic_selector.h \
100 settings/settings.h threading/thread_value.h \
101 threading/thread.h threading/windows/thread.h \
102 threading/mutex.h threading/condvar.h threading/spinlock.h threading/semaphore.h \
103 threading/rwlock.h threading/rwlock_condvar.h threading/lock_profiler.h \
104 utils/utils.h utils/chunk.h utils/debug.h utils/enum.h utils/identification.h \
105 utils/lexparser.h utils/optionsfrom.h utils/capabilities.h utils/backtrace.h \
106 utils/cpu_feature.h utils/leak_detective.h utils/printf_hook/printf_hook.h \
107 utils/printf_hook/printf_hook_vstr.h utils/printf_hook/printf_hook_builtin.h \
108 utils/parser_helper.h utils/test.h utils/integrity_checker.h utils/process.h \
109 utils/utils/strerror.h utils/compat/windows.h utils/compat/apple.h
112 library.lo : $(top_builddir)/config.status
114 libstrongswan_la_LIBADD = $(DLLIB) $(BTLIB) $(SOCKLIB) $(RTLIB) $(BFDLIB) $(UNWINDLIB)
117 -I$(top_srcdir)/src/libstrongswan \
118 -DIPSEC_DIR=\"${ipsecdir}\" \
119 -DIPSEC_LIB_DIR=\"${ipseclibdir}\" \
120 -DPLUGINDIR=\"${plugindir}\" \
121 -DSTRONGSWAN_CONF=\"${strongswan_conf}\"
132 libstrongswan_la_LIBADD += -lws2_32 -lpsapi
133 libstrongswan_la_SOURCES += \
134 threading/windows/thread.c \
135 threading/windows/thread_value.c \
136 threading/windows/mutex.c \
137 threading/windows/rwlock.c \
138 threading/windows/spinlock.c \
139 threading/windows/semaphore.c \
140 utils/compat/windows.c
142 libstrongswan_la_LIBADD += $(PTHREADLIB)
146 libstrongswan_la_LIBADD += -ldbghelp
147 AM_CPPFLAGS += -DHAVE_DBGHELP
150 if USE_LEAK_DETECTIVE
151 AM_CPPFLAGS += -DLEAK_DETECTIVE
152 libstrongswan_la_SOURCES += utils/leak_detective.c
156 AM_CPPFLAGS += -DLOCK_PROFILER
159 if USE_INTEGRITY_TEST
160 AM_CPPFLAGS += -DINTEGRITY_TEST
161 libstrongswan_la_SOURCES += utils/integrity_checker.c
165 libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_vstr.c
166 libstrongswan_la_LIBADD += -lvstr
169 if USE_BUILTIN_PRINTF
170 libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_builtin.c
171 libstrongswan_la_LIBADD += -lm
174 if !USE_BUILTIN_PRINTF
176 libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_glibc.c
181 libstrongswan_la_LIBADD += -lcap
185 asn1/oid.txt asn1/oid.pl \
186 crypto/proposal/proposal_keywords_static.txt \
187 Android.mk AndroidConfigLocal.h
190 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
191 $(srcdir)/crypto/proposal/proposal_keywords_static.c \
192 settings/settings_parser.h
194 MAINTAINERCLEANFILES = \
195 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
196 $(srcdir)/crypto/proposal/proposal_keywords_static.c
198 $(srcdir)/asn1/oid.c : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
200 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
202 $(srcdir)/asn1/oid.h : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
204 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
206 $(srcdir)/crypto/proposal/proposal_keywords_static.c: $(srcdir)/crypto/proposal/proposal_keywords_static.txt \
207 $(srcdir)/crypto/proposal/proposal_keywords_static.h
209 $(GPERF) -N proposal_get_token_static -m 10 -C -G -c -t -D < \
210 $(srcdir)/crypto/proposal/proposal_keywords_static.txt > $@
213 # build plugins with their own Makefile
214 #######################################
223 SUBDIRS += plugins/af_alg
225 libstrongswan_la_LIBADD += plugins/af_alg/libstrongswan-af-alg.la
230 SUBDIRS += plugins/aes
232 libstrongswan_la_LIBADD += plugins/aes/libstrongswan-aes.la
237 SUBDIRS += plugins/des
239 libstrongswan_la_LIBADD += plugins/des/libstrongswan-des.la
244 SUBDIRS += plugins/blowfish
246 libstrongswan_la_LIBADD += plugins/blowfish/libstrongswan-blowfish.la
251 SUBDIRS += plugins/rc2
253 libstrongswan_la_LIBADD += plugins/rc2/libstrongswan-rc2.la
258 SUBDIRS += plugins/md4
260 libstrongswan_la_LIBADD += plugins/md4/libstrongswan-md4.la
265 SUBDIRS += plugins/md5
267 libstrongswan_la_LIBADD += plugins/md5/libstrongswan-md5.la
272 SUBDIRS += plugins/sha1
274 libstrongswan_la_LIBADD += plugins/sha1/libstrongswan-sha1.la
279 SUBDIRS += plugins/sha2
281 libstrongswan_la_LIBADD += plugins/sha2/libstrongswan-sha2.la
286 SUBDIRS += plugins/gmp
288 libstrongswan_la_LIBADD += plugins/gmp/libstrongswan-gmp.la
293 SUBDIRS += plugins/rdrand
295 libstrongswan_la_LIBADD += plugins/rdrand/libstrongswan-rdrand.la
300 SUBDIRS += plugins/aesni
302 libstrongswan_la_LIBADD += plugins/aesni/libstrongswan-aesni.la
307 SUBDIRS += plugins/random
309 libstrongswan_la_LIBADD += plugins/random/libstrongswan-random.la
314 SUBDIRS += plugins/nonce
316 libstrongswan_la_LIBADD += plugins/nonce/libstrongswan-nonce.la
321 SUBDIRS += plugins/hmac
323 libstrongswan_la_LIBADD += plugins/hmac/libstrongswan-hmac.la
328 SUBDIRS += plugins/cmac
330 libstrongswan_la_LIBADD += plugins/cmac/libstrongswan-cmac.la
335 SUBDIRS += plugins/xcbc
337 libstrongswan_la_LIBADD += plugins/xcbc/libstrongswan-xcbc.la
342 SUBDIRS += plugins/x509
344 libstrongswan_la_LIBADD += plugins/x509/libstrongswan-x509.la
349 SUBDIRS += plugins/revocation
351 libstrongswan_la_LIBADD += plugins/revocation/libstrongswan-revocation.la
356 SUBDIRS += plugins/constraints
358 libstrongswan_la_LIBADD += plugins/constraints/libstrongswan-constraints.la
363 SUBDIRS += plugins/acert
365 libstrongswan_la_LIBADD += plugins/acert/libstrongswan-acert.la
370 SUBDIRS += plugins/pubkey
372 libstrongswan_la_LIBADD += plugins/pubkey/libstrongswan-pubkey.la
377 SUBDIRS += plugins/pkcs1
379 libstrongswan_la_LIBADD += plugins/pkcs1/libstrongswan-pkcs1.la
384 SUBDIRS += plugins/pkcs7
386 libstrongswan_la_LIBADD += plugins/pkcs7/libstrongswan-pkcs7.la
391 SUBDIRS += plugins/pkcs8
393 libstrongswan_la_LIBADD += plugins/pkcs8/libstrongswan-pkcs8.la
398 SUBDIRS += plugins/pkcs12
400 libstrongswan_la_LIBADD += plugins/pkcs12/libstrongswan-pkcs12.la
405 SUBDIRS += plugins/pgp
407 libstrongswan_la_LIBADD += plugins/pgp/libstrongswan-pgp.la
412 SUBDIRS += plugins/dnskey
414 libstrongswan_la_LIBADD += plugins/dnskey/libstrongswan-dnskey.la
419 SUBDIRS += plugins/sshkey
421 libstrongswan_la_LIBADD += plugins/sshkey/libstrongswan-sshkey.la
426 SUBDIRS += plugins/pem
428 libstrongswan_la_LIBADD += plugins/pem/libstrongswan-pem.la
433 SUBDIRS += plugins/curl
435 libstrongswan_la_LIBADD += plugins/curl/libstrongswan-curl.la
440 SUBDIRS += plugins/files
442 libstrongswan_la_LIBADD += plugins/files/libstrongswan-files.la
447 SUBDIRS += plugins/winhttp
449 libstrongswan_la_LIBADD += plugins/winhttp/libstrongswan-winhttp.la
454 SUBDIRS += plugins/unbound
456 libstrongswan_la_LIBADD += plugins/unbound/libstrongswan-unbound.la
461 SUBDIRS += plugins/soup
463 libstrongswan_la_LIBADD += plugins/soup/libstrongswan-soup.la
468 SUBDIRS += plugins/ldap
470 libstrongswan_la_LIBADD += plugins/ldap/libstrongswan-ldap.la
475 SUBDIRS += plugins/mysql
477 libstrongswan_la_LIBADD += plugins/mysql/libstrongswan-mysql.la
482 SUBDIRS += plugins/sqlite
484 libstrongswan_la_LIBADD += plugins/sqlite/libstrongswan-sqlite.la
489 SUBDIRS += plugins/padlock
491 libstrongswan_la_LIBADD += plugins/padlock/libstrongswan-padlock.la
496 SUBDIRS += plugins/openssl
498 libstrongswan_la_LIBADD += plugins/openssl/libstrongswan-openssl.la
503 SUBDIRS += plugins/gcrypt
505 libstrongswan_la_LIBADD += plugins/gcrypt/libstrongswan-gcrypt.la
510 SUBDIRS += plugins/fips_prf
512 libstrongswan_la_LIBADD += plugins/fips_prf/libstrongswan-fips-prf.la
517 SUBDIRS += plugins/agent
519 libstrongswan_la_LIBADD += plugins/agent/libstrongswan-agent.la
524 SUBDIRS += plugins/keychain
526 libstrongswan_la_LIBADD += plugins/keychain/libstrongswan-keychain.la
531 SUBDIRS += plugins/pkcs11
533 libstrongswan_la_LIBADD += plugins/pkcs11/libstrongswan-pkcs11.la
538 SUBDIRS += plugins/ctr
540 libstrongswan_la_LIBADD += plugins/ctr/libstrongswan-ctr.la
545 SUBDIRS += plugins/ccm
547 libstrongswan_la_LIBADD += plugins/ccm/libstrongswan-ccm.la
552 SUBDIRS += plugins/gcm
554 libstrongswan_la_LIBADD += plugins/gcm/libstrongswan-gcm.la
559 SUBDIRS += plugins/ntru
561 libstrongswan_la_LIBADD += plugins/ntru/libstrongswan-ntru.la
566 SUBDIRS += plugins/bliss
568 libstrongswan_la_LIBADD += plugins/bliss/libstrongswan-bliss.la
573 SUBDIRS += plugins/test_vectors
575 libstrongswan_la_LIBADD += plugins/test_vectors/libstrongswan-test-vectors.la
584 SUBDIRS += plugins/bliss/tests