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