]> git.ipfire.org Git - thirdparty/strongswan.git/blame_incremental - 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
1ipseclib_LTLIBRARIES = libstrongswan.la
2
3libstrongswan_la_SOURCES = \
4library.c \
5asn1/asn1.c asn1/asn1_parser.c asn1/oid.c bio/bio_reader.c bio/bio_writer.c \
6collections/blocking_queue.c collections/enumerator.c collections/hashtable.c \
7collections/array.c \
8collections/linked_list.c crypto/crypters/crypter.c crypto/hashers/hasher.c \
9crypto/proposal/proposal_keywords.c crypto/proposal/proposal_keywords_static.c \
10crypto/prfs/prf.c crypto/prfs/mac_prf.c crypto/pkcs5.c \
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 \
19credentials/containers/container.c credentials/containers/pkcs12.c \
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 \
24database/database_factory.c fetcher/fetcher.c fetcher/fetcher_manager.c eap/eap.c \
25ipsec/ipsec_types.c \
26networking/host.c networking/host_resolver.c networking/packet.c \
27networking/tun_device.c \
28pen/pen.c plugins/plugin_loader.c plugins/plugin_feature.c processing/jobs/job.c \
29processing/jobs/callback_job.c processing/processor.c processing/scheduler.c \
30resolver/resolver_manager.c resolver/rr_set.c \
31selectors/traffic_selector.c threading/thread.c threading/thread_value.c \
32threading/mutex.c threading/semaphore.c threading/rwlock.c threading/spinlock.c \
33utils/utils.c utils/chunk.c utils/debug.c utils/enum.c utils/identification.c \
34utils/lexparser.c utils/optionsfrom.c utils/capabilities.c utils/backtrace.c \
35utils/printf_hook.c utils/settings.c
36
37if USE_DEV_HEADERS
38strongswan_includedir = ${dev_headers}
39nobase_strongswan_include_HEADERS = \
40library.h \
41asn1/asn1.h asn1/asn1_parser.h asn1/oid.h bio/bio_reader.h bio/bio_writer.h \
42collections/blocking_queue.h collections/enumerator.h collections/hashtable.h \
43collections/linked_list.h collections/array.h \
44crypto/crypters/crypter.h crypto/hashers/hasher.h crypto/mac.h \
45crypto/proposal/proposal_keywords.h crypto/proposal/proposal_keywords_static.h \
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 \
49crypto/aead.h crypto/transform.h crypto/pkcs5.h \
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 \
58credentials/containers/container.h credentials/containers/pkcs7.h \
59credentials/containers/pkcs12.h \
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 \
65database/database.h database/database_factory.h fetcher/fetcher.h \
66fetcher/fetcher_manager.h eap/eap.h pen/pen.h ipsec/ipsec_types.h \
67networking/host.h networking/host_resolver.h networking/packet.h \
68networking/tun_device.h \
69resolver/resolver.h resolver/resolver_response.h resolver/rr_set.h \
70resolver/rr.h resolver/resolver_manager.h \
71plugins/plugin_loader.h plugins/plugin.h plugins/plugin_feature.h \
72processing/jobs/job.h processing/jobs/callback_job.h processing/processor.h \
73processing/scheduler.h selectors/traffic_selector.h \
74threading/thread.h threading/thread_value.h \
75threading/mutex.h threading/condvar.h threading/spinlock.h threading/semaphore.h \
76threading/rwlock.h threading/rwlock_condvar.h threading/lock_profiler.h \
77utils/utils.h utils/chunk.h utils/debug.h utils/enum.h utils/identification.h \
78utils/lexparser.h utils/optionsfrom.h utils/capabilities.h utils/backtrace.h \
79utils/leak_detective.h utils/printf_hook.h utils/settings.h utils/integrity_checker.h
80endif
81
82library.lo : $(top_builddir)/config.status
83
84libstrongswan_la_LIBADD = $(PTHREADLIB) $(DLLIB) $(BTLIB) $(SOCKLIB) $(RTLIB) $(BFDLIB) $(UNWINDLIB)
85
86INCLUDES = -I$(top_srcdir)/src/libstrongswan
87AM_CFLAGS = \
88-DIPSEC_DIR=\"${ipsecdir}\" \
89-DIPSEC_LIB_DIR=\"${ipseclibdir}\" \
90-DPLUGINDIR=\"${plugindir}\" \
91-DSTRONGSWAN_CONF=\"${strongswan_conf}\" \
92@COVERAGE_CFLAGS@
93
94if USE_LEAK_DETECTIVE
95 AM_CFLAGS += -DLEAK_DETECTIVE
96 libstrongswan_la_SOURCES += utils/leak_detective.c
97endif
98
99if USE_LOCK_PROFILER
100 AM_CFLAGS += -DLOCK_PROFILER
101endif
102
103if USE_INTEGRITY_TEST
104 AM_CFLAGS += -DINTEGRITY_TEST
105 libstrongswan_la_SOURCES += utils/integrity_checker.c
106endif
107
108if USE_VSTR
109 libstrongswan_la_LIBADD += -lvstr
110endif
111
112if USE_LIBCAP
113 libstrongswan_la_LIBADD += -lcap
114endif
115
116EXTRA_DIST = \
117asn1/oid.txt asn1/oid.pl \
118crypto/proposal/proposal_keywords_static.txt \
119Android.mk AndroidConfigLocal.h
120
121BUILT_SOURCES = \
122$(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
123$(srcdir)/crypto/proposal/proposal_keywords_static.c
124
125MAINTAINERCLEANFILES = \
126$(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
127$(srcdir)/crypto/proposal/proposal_keywords_static.c
128
129$(srcdir)/asn1/oid.c : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
130 $(AM_V_GEN) \
131 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
132
133$(srcdir)/asn1/oid.h : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
134 $(AM_V_GEN) \
135 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
136
137$(srcdir)/crypto/proposal/proposal_keywords_static.c: $(srcdir)/crypto/proposal/proposal_keywords_static.txt \
138 $(srcdir)/crypto/proposal/proposal_keywords_static.h
139 $(AM_V_GEN) \
140 $(GPERF) -N proposal_get_token_static -m 10 -C -G -c -t -D < \
141 $(srcdir)/crypto/proposal/proposal_keywords_static.txt > $@
142
143
144# build plugins with their own Makefile
145#######################################
146
147if MONOLITHIC
148SUBDIRS =
149else
150SUBDIRS = .
151endif
152
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
160if USE_AES
161 SUBDIRS += plugins/aes
162if MONOLITHIC
163 libstrongswan_la_LIBADD += plugins/aes/libstrongswan-aes.la
164endif
165endif
166
167if USE_DES
168 SUBDIRS += plugins/des
169if MONOLITHIC
170 libstrongswan_la_LIBADD += plugins/des/libstrongswan-des.la
171endif
172endif
173
174if USE_BLOWFISH
175 SUBDIRS += plugins/blowfish
176if MONOLITHIC
177 libstrongswan_la_LIBADD += plugins/blowfish/libstrongswan-blowfish.la
178endif
179endif
180
181if USE_RC2
182 SUBDIRS += plugins/rc2
183if MONOLITHIC
184 libstrongswan_la_LIBADD += plugins/rc2/libstrongswan-rc2.la
185endif
186endif
187
188if USE_MD4
189 SUBDIRS += plugins/md4
190if MONOLITHIC
191 libstrongswan_la_LIBADD += plugins/md4/libstrongswan-md4.la
192endif
193endif
194
195if USE_MD5
196 SUBDIRS += plugins/md5
197if MONOLITHIC
198 libstrongswan_la_LIBADD += plugins/md5/libstrongswan-md5.la
199endif
200endif
201
202if USE_SHA1
203 SUBDIRS += plugins/sha1
204if MONOLITHIC
205 libstrongswan_la_LIBADD += plugins/sha1/libstrongswan-sha1.la
206endif
207endif
208
209if USE_SHA2
210 SUBDIRS += plugins/sha2
211if MONOLITHIC
212 libstrongswan_la_LIBADD += plugins/sha2/libstrongswan-sha2.la
213endif
214endif
215
216if USE_GMP
217 SUBDIRS += plugins/gmp
218if MONOLITHIC
219 libstrongswan_la_LIBADD += plugins/gmp/libstrongswan-gmp.la
220endif
221endif
222
223if USE_RDRAND
224 SUBDIRS += plugins/rdrand
225if MONOLITHIC
226 libstrongswan_la_LIBADD += plugins/rdrand/libstrongswan-rdrand.la
227endif
228endif
229
230if USE_RANDOM
231 SUBDIRS += plugins/random
232if MONOLITHIC
233 libstrongswan_la_LIBADD += plugins/random/libstrongswan-random.la
234endif
235endif
236
237if USE_NONCE
238 SUBDIRS += plugins/nonce
239if MONOLITHIC
240 libstrongswan_la_LIBADD += plugins/nonce/libstrongswan-nonce.la
241endif
242endif
243
244if USE_HMAC
245 SUBDIRS += plugins/hmac
246if MONOLITHIC
247 libstrongswan_la_LIBADD += plugins/hmac/libstrongswan-hmac.la
248endif
249endif
250
251if USE_CMAC
252 SUBDIRS += plugins/cmac
253if MONOLITHIC
254 libstrongswan_la_LIBADD += plugins/cmac/libstrongswan-cmac.la
255endif
256endif
257
258if USE_XCBC
259 SUBDIRS += plugins/xcbc
260if MONOLITHIC
261 libstrongswan_la_LIBADD += plugins/xcbc/libstrongswan-xcbc.la
262endif
263endif
264
265if USE_X509
266 SUBDIRS += plugins/x509
267if MONOLITHIC
268 libstrongswan_la_LIBADD += plugins/x509/libstrongswan-x509.la
269endif
270endif
271
272if USE_REVOCATION
273 SUBDIRS += plugins/revocation
274if MONOLITHIC
275 libstrongswan_la_LIBADD += plugins/revocation/libstrongswan-revocation.la
276endif
277endif
278
279if USE_CONSTRAINTS
280 SUBDIRS += plugins/constraints
281if MONOLITHIC
282 libstrongswan_la_LIBADD += plugins/constraints/libstrongswan-constraints.la
283endif
284endif
285
286if USE_PUBKEY
287 SUBDIRS += plugins/pubkey
288if MONOLITHIC
289 libstrongswan_la_LIBADD += plugins/pubkey/libstrongswan-pubkey.la
290endif
291endif
292
293if USE_PKCS1
294 SUBDIRS += plugins/pkcs1
295if MONOLITHIC
296 libstrongswan_la_LIBADD += plugins/pkcs1/libstrongswan-pkcs1.la
297endif
298endif
299
300if USE_PKCS7
301 SUBDIRS += plugins/pkcs7
302if MONOLITHIC
303 libstrongswan_la_LIBADD += plugins/pkcs7/libstrongswan-pkcs7.la
304endif
305endif
306
307if USE_PKCS8
308 SUBDIRS += plugins/pkcs8
309if MONOLITHIC
310 libstrongswan_la_LIBADD += plugins/pkcs8/libstrongswan-pkcs8.la
311endif
312endif
313
314if USE_PKCS12
315 SUBDIRS += plugins/pkcs12
316if MONOLITHIC
317 libstrongswan_la_LIBADD += plugins/pkcs12/libstrongswan-pkcs12.la
318endif
319endif
320
321if USE_PGP
322 SUBDIRS += plugins/pgp
323if MONOLITHIC
324 libstrongswan_la_LIBADD += plugins/pgp/libstrongswan-pgp.la
325endif
326endif
327
328if USE_DNSKEY
329 SUBDIRS += plugins/dnskey
330if MONOLITHIC
331 libstrongswan_la_LIBADD += plugins/dnskey/libstrongswan-dnskey.la
332endif
333endif
334
335if USE_SSHKEY
336 SUBDIRS += plugins/sshkey
337if MONOLITHIC
338 libstrongswan_la_LIBADD += plugins/sshkey/libstrongswan-sshkey.la
339endif
340endif
341
342if USE_PEM
343 SUBDIRS += plugins/pem
344if MONOLITHIC
345 libstrongswan_la_LIBADD += plugins/pem/libstrongswan-pem.la
346endif
347endif
348
349if USE_CURL
350 SUBDIRS += plugins/curl
351if MONOLITHIC
352 libstrongswan_la_LIBADD += plugins/curl/libstrongswan-curl.la
353endif
354endif
355
356if USE_UNBOUND
357 SUBDIRS += plugins/unbound
358if MONOLITHIC
359 libstrongswan_la_LIBADD += plugins/unbound/libstrongswan-unbound.la
360endif
361endif
362
363if USE_SOUP
364 SUBDIRS += plugins/soup
365if MONOLITHIC
366 libstrongswan_la_LIBADD += plugins/soup/libstrongswan-soup.la
367endif
368endif
369
370if USE_LDAP
371 SUBDIRS += plugins/ldap
372if MONOLITHIC
373 libstrongswan_la_LIBADD += plugins/ldap/libstrongswan-ldap.la
374endif
375endif
376
377if USE_MYSQL
378 SUBDIRS += plugins/mysql
379if MONOLITHIC
380 libstrongswan_la_LIBADD += plugins/mysql/libstrongswan-mysql.la
381endif
382endif
383
384if USE_SQLITE
385 SUBDIRS += plugins/sqlite
386if MONOLITHIC
387 libstrongswan_la_LIBADD += plugins/sqlite/libstrongswan-sqlite.la
388endif
389endif
390
391if USE_PADLOCK
392 SUBDIRS += plugins/padlock
393if MONOLITHIC
394 libstrongswan_la_LIBADD += plugins/padlock/libstrongswan-padlock.la
395endif
396endif
397
398if USE_OPENSSL
399 SUBDIRS += plugins/openssl
400if MONOLITHIC
401 libstrongswan_la_LIBADD += plugins/openssl/libstrongswan-openssl.la
402endif
403endif
404
405if USE_GCRYPT
406 SUBDIRS += plugins/gcrypt
407if MONOLITHIC
408 libstrongswan_la_LIBADD += plugins/gcrypt/libstrongswan-gcrypt.la
409endif
410endif
411
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
419if USE_AGENT
420 SUBDIRS += plugins/agent
421if MONOLITHIC
422 libstrongswan_la_LIBADD += plugins/agent/libstrongswan-agent.la
423endif
424endif
425
426if USE_KEYCHAIN
427 SUBDIRS += plugins/keychain
428if MONOLITHIC
429 libstrongswan_la_LIBADD += plugins/keychain/libstrongswan-keychain.la
430endif
431endif
432
433if USE_PKCS11
434 SUBDIRS += plugins/pkcs11
435if MONOLITHIC
436 libstrongswan_la_LIBADD += plugins/pkcs11/libstrongswan-pkcs11.la
437endif
438endif
439
440if USE_CTR
441 SUBDIRS += plugins/ctr
442if MONOLITHIC
443 libstrongswan_la_LIBADD += plugins/ctr/libstrongswan-ctr.la
444endif
445endif
446
447if USE_CCM
448 SUBDIRS += plugins/ccm
449if MONOLITHIC
450 libstrongswan_la_LIBADD += plugins/ccm/libstrongswan-ccm.la
451endif
452endif
453
454if USE_GCM
455 SUBDIRS += plugins/gcm
456if MONOLITHIC
457 libstrongswan_la_LIBADD += plugins/gcm/libstrongswan-gcm.la
458endif
459endif
460
461if USE_TEST_VECTORS
462 SUBDIRS += plugins/test_vectors
463if MONOLITHIC
464 libstrongswan_la_LIBADD += plugins/test_vectors/libstrongswan-test-vectors.la
465endif
466endif
467
468if UNITTESTS
469if MONOLITHIC
470 SUBDIRS += .
471endif
472 SUBDIRS += tests
473endif