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