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