]> git.ipfire.org Git - thirdparty/strongswan.git/blame - src/libstrongswan/Makefile.am
PKCS#5 wrapper can decrypt PKCS#12-like schemes
[thirdparty/strongswan.git] / src / libstrongswan / Makefile.am
CommitLineData
60d62b9e 1ipseclib_LTLIBRARIES = libstrongswan.la
f2c2d395 2
e3b7be91 3libstrongswan_la_SOURCES = \
f9625952 4library.c \
292d8f41 5asn1/asn1.c asn1/asn1_parser.c asn1/oid.c bio/bio_reader.c bio/bio_writer.c \
12642a68 6collections/blocking_queue.c collections/enumerator.c collections/hashtable.c \
03ba8f9e 7collections/linked_list.c crypto/crypters/crypter.c crypto/hashers/hasher.c \
8c2ec471 8crypto/proposal/proposal_keywords.c crypto/proposal/proposal_keywords_static.c \
4076e3ee 9crypto/prfs/prf.c crypto/prfs/mac_prf.c crypto/pkcs5.c \
71154485
MW
10crypto/rngs/rng.c crypto/prf_plus.c crypto/signers/signer.c \
11crypto/signers/mac_signer.c crypto/crypto_factory.c crypto/crypto_tester.c \
12crypto/diffie_hellman.c crypto/aead.c crypto/transform.c \
13credentials/credential_factory.c credentials/builder.c \
14credentials/cred_encoding.c credentials/keys/private_key.c \
15credentials/keys/public_key.c credentials/keys/shared_key.c \
16credentials/certificates/certificate.c credentials/certificates/crl.c \
17credentials/certificates/ocsp_response.c \
fc67a932 18credentials/containers/container.c \
71154485
MW
19credentials/ietf_attributes/ietf_attributes.c credentials/credential_manager.c \
20credentials/sets/auth_cfg_wrapper.c credentials/sets/ocsp_response_wrapper.c \
21credentials/sets/cert_cache.c credentials/sets/mem_cred.c \
22credentials/sets/callback_cred.c credentials/auth_cfg.c database/database.c \
d4cf9cdf 23database/database_factory.c fetcher/fetcher.c fetcher/fetcher_manager.c eap/eap.c \
156f7e9b 24ipsec/ipsec_types.c \
fdee6b5f
TB
25networking/host.c networking/host_resolver.c networking/packet.c \
26networking/tun_device.c \
d4cf9cdf 27pen/pen.c plugins/plugin_loader.c plugins/plugin_feature.c processing/jobs/job.c \
71154485 28processing/jobs/callback_job.c processing/processor.c processing/scheduler.c \
62ea67e7 29resolver/resolver_manager.c resolver/rr_set.c \
71154485
MW
30selectors/traffic_selector.c threading/thread.c threading/thread_value.c \
31threading/mutex.c threading/semaphore.c threading/rwlock.c threading/spinlock.c \
bca34c37 32utils/utils.c utils/chunk.c utils/debug.c utils/enum.c utils/identification.c \
f05b4272 33utils/lexparser.c utils/optionsfrom.c utils/capabilities.c utils/backtrace.c \
f9625952 34utils/printf_hook.c utils/settings.c
e18556e9 35
b188f231
MW
36if USE_DEV_HEADERS
37strongswan_includedir = ${dev_headers}
71154485 38nobase_strongswan_include_HEADERS = \
f9625952 39library.h \
71154485 40asn1/asn1.h asn1/asn1_parser.h asn1/oid.h bio/bio_reader.h bio/bio_writer.h \
12642a68
TB
41collections/blocking_queue.h collections/enumerator.h collections/hashtable.h \
42collections/linked_list.h \
71154485 43crypto/crypters/crypter.h crypto/hashers/hasher.h crypto/mac.h \
03ba8f9e 44crypto/proposal/proposal_keywords.h crypto/proposal/proposal_keywords_static.h \
71154485
MW
45crypto/prfs/prf.h crypto/prfs/mac_prf.h crypto/rngs/rng.h crypto/nonce_gen.h \
46crypto/prf_plus.h crypto/signers/signer.h crypto/signers/mac_signer.h \
47crypto/crypto_factory.h crypto/crypto_tester.h crypto/diffie_hellman.h \
4076e3ee 48crypto/aead.h crypto/transform.h crypto/pkcs5.h \
71154485
MW
49credentials/credential_factory.h credentials/builder.h \
50credentials/cred_encoding.h credentials/keys/private_key.h \
51credentials/keys/public_key.h credentials/keys/shared_key.h \
52credentials/certificates/certificate.h credentials/certificates/x509.h \
53credentials/certificates/ac.h credentials/certificates/crl.h \
54credentials/certificates/pkcs10.h credentials/certificates/ocsp_request.h \
55credentials/certificates/ocsp_response.h \
56credentials/certificates/pgp_certificate.h \
fc67a932 57credentials/containers/container.h credentials/containers/pkcs7.h \
71154485
MW
58credentials/ietf_attributes/ietf_attributes.h \
59credentials/credential_manager.h credentials/sets/auth_cfg_wrapper.h \
60credentials/sets/ocsp_response_wrapper.h credentials/sets/cert_cache.h \
61credentials/sets/mem_cred.h credentials/sets/callback_cred.h \
62credentials/auth_cfg.h credentials/credential_set.h credentials/cert_validator.h \
d4cf9cdf 63database/database.h database/database_factory.h fetcher/fetcher.h \
156f7e9b 64fetcher/fetcher_manager.h eap/eap.h pen/pen.h ipsec/ipsec_types.h \
fdee6b5f
TB
65networking/host.h networking/host_resolver.h networking/packet.h \
66networking/tun_device.h \
ffdeeb66 67resolver/resolver.h resolver/resolver_response.h resolver/rr_set.h \
b1505b34 68resolver/rr.h resolver/resolver_manager.h \
17f806d8
AS
69plugins/plugin_loader.h plugins/plugin.h plugins/plugin_feature.h \
70processing/jobs/job.h processing/jobs/callback_job.h processing/processor.h \
156f7e9b
TB
71processing/scheduler.h selectors/traffic_selector.h \
72threading/thread.h threading/thread_value.h \
d4cf9cdf 73threading/mutex.h threading/condvar.h threading/spinlock.h threading/semaphore.h \
60dc4464 74threading/rwlock.h threading/rwlock_condvar.h threading/lock_profiler.h \
bca34c37 75utils/utils.h utils/chunk.h utils/debug.h utils/enum.h utils/identification.h \
f05b4272 76utils/lexparser.h utils/optionsfrom.h utils/capabilities.h utils/backtrace.h \
f9625952 77utils/leak_detective.h utils/printf_hook.h utils/settings.h utils/integrity_checker.h
b188f231 78endif
f2c2d395 79
908e7522
MW
80library.lo : $(top_builddir)/config.status
81
83714577 82libstrongswan_la_LIBADD = $(PTHREADLIB) $(DLLIB) $(BTLIB) $(SOCKLIB) $(RTLIB) $(BFDLIB) $(UNWINDLIB)
f2c2d395
MW
83
84INCLUDES = -I$(top_srcdir)/src/libstrongswan
08b2d288
AS
85AM_CFLAGS = \
86-DIPSEC_DIR=\"${ipsecdir}\" \
60d62b9e 87-DIPSEC_LIB_DIR=\"${ipseclibdir}\" \
356b2b27
MW
88-DPLUGINDIR=\"${plugindir}\" \
89-DSTRONGSWAN_CONF=\"${strongswan_conf}\"
d6c32b83 90
4acc8989 91if USE_LEAK_DETECTIVE
552cc11b 92 AM_CFLAGS += -DLEAK_DETECTIVE
9564f9eb 93 libstrongswan_la_SOURCES += utils/leak_detective.c
a9184df3
MW
94endif
95
02140125
MW
96if USE_LOCK_PROFILER
97 AM_CFLAGS += -DLOCK_PROFILER
98endif
99
bef50875
MW
100if USE_INTEGRITY_TEST
101 AM_CFLAGS += -DINTEGRITY_TEST
08944b68 102 libstrongswan_la_SOURCES += utils/integrity_checker.c
bef50875
MW
103endif
104
d25ce370
TB
105if USE_VSTR
106 libstrongswan_la_LIBADD += -lvstr
107endif
108
0619ddfa
MW
109if USE_LIBCAP
110 libstrongswan_la_LIBADD += -lcap
111endif
112
433cb51b
AS
113EXTRA_DIST = \
114asn1/oid.txt asn1/oid.pl \
8c2ec471 115crypto/proposal/proposal_keywords_static.txt \
1be32988 116Android.mk AndroidConfigLocal.h
433cb51b
AS
117
118BUILT_SOURCES = \
119$(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
8c2ec471 120$(srcdir)/crypto/proposal/proposal_keywords_static.c
433cb51b
AS
121
122MAINTAINERCLEANFILES = \
123$(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
8c2ec471 124$(srcdir)/crypto/proposal/proposal_keywords_static.c
55434a1b 125
d24a74c5 126$(srcdir)/asn1/oid.c : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
f932677f 127 $(AM_V_GEN) \
d24a74c5 128 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
d6c32b83 129
d24a74c5 130$(srcdir)/asn1/oid.h : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
f932677f 131 $(AM_V_GEN) \
d24a74c5 132 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
55434a1b 133
8c2ec471
FK
134$(srcdir)/crypto/proposal/proposal_keywords_static.c: $(srcdir)/crypto/proposal/proposal_keywords_static.txt \
135 $(srcdir)/crypto/proposal/proposal_keywords_static.h
9f1dfd88 136 $(AM_V_GEN) \
8c2ec471
FK
137 $(GPERF) -N proposal_get_token_static -m 10 -C -G -c -t -D < \
138 $(srcdir)/crypto/proposal/proposal_keywords_static.txt > $@
433cb51b 139
552cc11b
MW
140
141# build plugins with their own Makefile
142#######################################
143
0ace3528 144if MONOLITHIC
6ec60bb9 145SUBDIRS =
0ace3528
TB
146else
147SUBDIRS = .
148endif
552cc11b 149
71c87e34
MW
150if USE_AF_ALG
151 SUBDIRS += plugins/af_alg
152if MONOLITHIC
153 libstrongswan_la_LIBADD += plugins/af_alg/libstrongswan-af-alg.la
154endif
155endif
156
552cc11b
MW
157if USE_AES
158 SUBDIRS += plugins/aes
6ec60bb9
TB
159if MONOLITHIC
160 libstrongswan_la_LIBADD += plugins/aes/libstrongswan-aes.la
161endif
552cc11b
MW
162endif
163
164if USE_DES
165 SUBDIRS += plugins/des
6ec60bb9
TB
166if MONOLITHIC
167 libstrongswan_la_LIBADD += plugins/des/libstrongswan-des.la
168endif
552cc11b
MW
169endif
170
d36ae9e3
AS
171if USE_BLOWFISH
172 SUBDIRS += plugins/blowfish
6ec60bb9
TB
173if MONOLITHIC
174 libstrongswan_la_LIBADD += plugins/blowfish/libstrongswan-blowfish.la
175endif
d36ae9e3
AS
176endif
177
9d4fc867
TB
178if USE_RC2
179 SUBDIRS += plugins/rc2
180if MONOLITHIC
181 libstrongswan_la_LIBADD += plugins/rc2/libstrongswan-rc2.la
182endif
183endif
184
1e0d1ae2
AS
185if USE_MD4
186 SUBDIRS += plugins/md4
6ec60bb9
TB
187if MONOLITHIC
188 libstrongswan_la_LIBADD += plugins/md4/libstrongswan-md4.la
189endif
1e0d1ae2
AS
190endif
191
552cc11b
MW
192if USE_MD5
193 SUBDIRS += plugins/md5
6ec60bb9
TB
194if MONOLITHIC
195 libstrongswan_la_LIBADD += plugins/md5/libstrongswan-md5.la
196endif
552cc11b
MW
197endif
198
199if USE_SHA1
200 SUBDIRS += plugins/sha1
6ec60bb9
TB
201if MONOLITHIC
202 libstrongswan_la_LIBADD += plugins/sha1/libstrongswan-sha1.la
203endif
552cc11b
MW
204endif
205
206if USE_SHA2
207 SUBDIRS += plugins/sha2
6ec60bb9
TB
208if MONOLITHIC
209 libstrongswan_la_LIBADD += plugins/sha2/libstrongswan-sha2.la
210endif
552cc11b
MW
211endif
212
552cc11b
MW
213if USE_GMP
214 SUBDIRS += plugins/gmp
6ec60bb9
TB
215if MONOLITHIC
216 libstrongswan_la_LIBADD += plugins/gmp/libstrongswan-gmp.la
217endif
552cc11b
MW
218endif
219
ed8dc6f1
MW
220if USE_RDRAND
221 SUBDIRS += plugins/rdrand
222if MONOLITHIC
223 libstrongswan_la_LIBADD += plugins/rdrand/libstrongswan-rdrand.la
224endif
225endif
226
6a365f07
MW
227if USE_RANDOM
228 SUBDIRS += plugins/random
6ec60bb9
TB
229if MONOLITHIC
230 libstrongswan_la_LIBADD += plugins/random/libstrongswan-random.la
231endif
6a365f07
MW
232endif
233
04024b5d
AKR
234if USE_NONCE
235 SUBDIRS += plugins/nonce
236if MONOLITHIC
237 libstrongswan_la_LIBADD += plugins/nonce/libstrongswan-nonce.la
238endif
239endif
240
552cc11b
MW
241if USE_HMAC
242 SUBDIRS += plugins/hmac
6ec60bb9
TB
243if MONOLITHIC
244 libstrongswan_la_LIBADD += plugins/hmac/libstrongswan-hmac.la
245endif
552cc11b
MW
246endif
247
c0d39c20
TB
248if USE_CMAC
249 SUBDIRS += plugins/cmac
250if MONOLITHIC
251 libstrongswan_la_LIBADD += plugins/cmac/libstrongswan-cmac.la
252endif
253endif
254
27d04e05
MW
255if USE_XCBC
256 SUBDIRS += plugins/xcbc
6ec60bb9
TB
257if MONOLITHIC
258 libstrongswan_la_LIBADD += plugins/xcbc/libstrongswan-xcbc.la
259endif
27d04e05
MW
260endif
261
552cc11b
MW
262if USE_X509
263 SUBDIRS += plugins/x509
6ec60bb9
TB
264if MONOLITHIC
265 libstrongswan_la_LIBADD += plugins/x509/libstrongswan-x509.la
266endif
552cc11b
MW
267endif
268
c2e5cee4
MW
269if USE_REVOCATION
270 SUBDIRS += plugins/revocation
271if MONOLITHIC
272 libstrongswan_la_LIBADD += plugins/revocation/libstrongswan-revocation.la
273endif
274endif
275
01d30381
MW
276if USE_CONSTRAINTS
277 SUBDIRS += plugins/constraints
278if MONOLITHIC
279 libstrongswan_la_LIBADD += plugins/constraints/libstrongswan-constraints.la
280endif
281endif
282
affd7a90
MW
283if USE_PUBKEY
284 SUBDIRS += plugins/pubkey
6ec60bb9
TB
285if MONOLITHIC
286 libstrongswan_la_LIBADD += plugins/pubkey/libstrongswan-pubkey.la
287endif
affd7a90
MW
288endif
289
1e0f6937
MW
290if USE_PKCS1
291 SUBDIRS += plugins/pkcs1
6ec60bb9
TB
292if MONOLITHIC
293 libstrongswan_la_LIBADD += plugins/pkcs1/libstrongswan-pkcs1.la
294endif
1e0f6937
MW
295endif
296
bd20f040
MW
297if USE_PKCS7
298 SUBDIRS += plugins/pkcs7
299if MONOLITHIC
300 libstrongswan_la_LIBADD += plugins/pkcs7/libstrongswan-pkcs7.la
301endif
302endif
303
5ec525c1
TB
304if USE_PKCS8
305 SUBDIRS += plugins/pkcs8
306if MONOLITHIC
307 libstrongswan_la_LIBADD += plugins/pkcs8/libstrongswan-pkcs8.la
308endif
309endif
310
9493dd2c
MW
311if USE_PGP
312 SUBDIRS += plugins/pgp
6ec60bb9
TB
313if MONOLITHIC
314 libstrongswan_la_LIBADD += plugins/pgp/libstrongswan-pgp.la
315endif
9493dd2c
MW
316endif
317
5ef478aa
MW
318if USE_DNSKEY
319 SUBDIRS += plugins/dnskey
6ec60bb9
TB
320if MONOLITHIC
321 libstrongswan_la_LIBADD += plugins/dnskey/libstrongswan-dnskey.la
322endif
5ef478aa
MW
323endif
324
584d656b
TB
325if USE_SSHKEY
326 SUBDIRS += plugins/sshkey
327if MONOLITHIC
328 libstrongswan_la_LIBADD += plugins/sshkey/libstrongswan-sshkey.la
329endif
330endif
331
160f4c22
MW
332if USE_PEM
333 SUBDIRS += plugins/pem
6ec60bb9
TB
334if MONOLITHIC
335 libstrongswan_la_LIBADD += plugins/pem/libstrongswan-pem.la
336endif
160f4c22
MW
337endif
338
552cc11b
MW
339if USE_CURL
340 SUBDIRS += plugins/curl
6ec60bb9
TB
341if MONOLITHIC
342 libstrongswan_la_LIBADD += plugins/curl/libstrongswan-curl.la
343endif
552cc11b
MW
344endif
345
9f963a7c
RG
346if USE_UNBOUND
347 SUBDIRS += plugins/unbound
348if MONOLITHIC
349 libstrongswan_la_LIBADD += plugins/unbound/libstrongswan-unbound.la
350endif
351endif
352
2ca52c80
MW
353if USE_SOUP
354 SUBDIRS += plugins/soup
355if MONOLITHIC
356 libstrongswan_la_LIBADD += plugins/soup/libstrongswan-soup.la
357endif
358endif
359
552cc11b
MW
360if USE_LDAP
361 SUBDIRS += plugins/ldap
6ec60bb9
TB
362if MONOLITHIC
363 libstrongswan_la_LIBADD += plugins/ldap/libstrongswan-ldap.la
364endif
552cc11b
MW
365endif
366
367if USE_MYSQL
368 SUBDIRS += plugins/mysql
6ec60bb9
TB
369if MONOLITHIC
370 libstrongswan_la_LIBADD += plugins/mysql/libstrongswan-mysql.la
371endif
552cc11b
MW
372endif
373
374if USE_SQLITE
375 SUBDIRS += plugins/sqlite
6ec60bb9
TB
376if MONOLITHIC
377 libstrongswan_la_LIBADD += plugins/sqlite/libstrongswan-sqlite.la
378endif
552cc11b
MW
379endif
380
36d62fac
MW
381if USE_PADLOCK
382 SUBDIRS += plugins/padlock
6ec60bb9
TB
383if MONOLITHIC
384 libstrongswan_la_LIBADD += plugins/padlock/libstrongswan-padlock.la
385endif
36d62fac 386endif
552cc11b 387
17353034
TB
388if USE_OPENSSL
389 SUBDIRS += plugins/openssl
6ec60bb9
TB
390if MONOLITHIC
391 libstrongswan_la_LIBADD += plugins/openssl/libstrongswan-openssl.la
392endif
17353034
TB
393endif
394
4977018c
MW
395if USE_GCRYPT
396 SUBDIRS += plugins/gcrypt
6ec60bb9
TB
397if MONOLITHIC
398 libstrongswan_la_LIBADD += plugins/gcrypt/libstrongswan-gcrypt.la
399endif
4977018c
MW
400endif
401
40f130da
MW
402if USE_FIPS_PRF
403 SUBDIRS += plugins/fips_prf
404if MONOLITHIC
405 libstrongswan_la_LIBADD += plugins/fips_prf/libstrongswan-fips-prf.la
406endif
407endif
408
21c95463
MW
409if USE_AGENT
410 SUBDIRS += plugins/agent
6ec60bb9
TB
411if MONOLITHIC
412 libstrongswan_la_LIBADD += plugins/agent/libstrongswan-agent.la
413endif
21c95463
MW
414endif
415
6e862e21
MW
416if USE_PKCS11
417 SUBDIRS += plugins/pkcs11
418if MONOLITHIC
419 libstrongswan_la_LIBADD += plugins/pkcs11/libstrongswan-pkcs11.la
420endif
421endif
422
272f0e1a
MW
423if USE_CTR
424 SUBDIRS += plugins/ctr
425if MONOLITHIC
426 libstrongswan_la_LIBADD += plugins/ctr/libstrongswan-ctr.la
427endif
428endif
429
80a93a13
MW
430if USE_CCM
431 SUBDIRS += plugins/ccm
432if MONOLITHIC
433 libstrongswan_la_LIBADD += plugins/ccm/libstrongswan-ccm.la
434endif
435endif
436
1a649810
MW
437if USE_GCM
438 SUBDIRS += plugins/gcm
439if MONOLITHIC
440 libstrongswan_la_LIBADD += plugins/gcm/libstrongswan-gcm.la
441endif
442endif
443
81811a9d
MW
444if USE_TEST_VECTORS
445 SUBDIRS += plugins/test_vectors
6ec60bb9
TB
446if MONOLITHIC
447 libstrongswan_la_LIBADD += plugins/test_vectors/libstrongswan-test-vectors.la
448endif
81811a9d 449endif