]> git.ipfire.org Git - thirdparty/strongswan.git/blame - src/libstrongswan/Makefile.am
Moved debug.[ch] to utils folder
[thirdparty/strongswan.git] / src / libstrongswan / Makefile.am
CommitLineData
60d62b9e 1ipseclib_LTLIBRARIES = libstrongswan.la
f2c2d395 2
e3b7be91 3libstrongswan_la_SOURCES = \
f05b4272 4library.c settings.c \
292d8f41 5asn1/asn1.c asn1/asn1_parser.c asn1/oid.c bio/bio_reader.c bio/bio_writer.c \
12642a68
TB
6collections/blocking_queue.c collections/enumerator.c collections/hashtable.c \
7collections/linked_list.c \
71154485 8crypto/crypters/crypter.c crypto/hashers/hasher.c crypto/pkcs7.c crypto/pkcs9.c \
8c2ec471
FK
9crypto/proposal/proposal_keywords.c crypto/proposal/proposal_keywords_static.c \
10crypto/prfs/prf.c crypto/prfs/mac_prf.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 \
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 \
f05b4272
TB
31utils.c utils/chunk.c utils/debug.c utils/enum.c utils/identification.c \
32utils/lexparser.c utils/optionsfrom.c utils/capabilities.c utils/backtrace.c \
33utils/printf_hook.c
e18556e9 34
b188f231
MW
35if USE_DEV_HEADERS
36strongswan_includedir = ${dev_headers}
71154485 37nobase_strongswan_include_HEADERS = \
f05b4272 38library.h settings.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
MW
42crypto/crypters/crypter.h crypto/hashers/hasher.h crypto/mac.h \
43crypto/pkcs7.h crypto/pkcs9.h crypto/proposal/proposal_keywords.h \
8c2ec471 44crypto/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 \
48crypto/aead.h crypto/transform.h \
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 \
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 \
f05b4272
TB
72utils.h utils/chunk.h utils/debug.h utils/enum.h utils/identification.h \
73utils/lexparser.h utils/optionsfrom.h utils/capabilities.h utils/backtrace.h \
05e448c5 74utils/leak_detective.h utils/printf_hook.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
5ec525c1
TB
277if USE_PKCS8
278 SUBDIRS += plugins/pkcs8
279if MONOLITHIC
280 libstrongswan_la_LIBADD += plugins/pkcs8/libstrongswan-pkcs8.la
281endif
282endif
283
9493dd2c
MW
284if USE_PGP
285 SUBDIRS += plugins/pgp
6ec60bb9
TB
286if MONOLITHIC
287 libstrongswan_la_LIBADD += plugins/pgp/libstrongswan-pgp.la
288endif
9493dd2c
MW
289endif
290
5ef478aa
MW
291if USE_DNSKEY
292 SUBDIRS += plugins/dnskey
6ec60bb9
TB
293if MONOLITHIC
294 libstrongswan_la_LIBADD += plugins/dnskey/libstrongswan-dnskey.la
295endif
5ef478aa
MW
296endif
297
160f4c22
MW
298if USE_PEM
299 SUBDIRS += plugins/pem
6ec60bb9
TB
300if MONOLITHIC
301 libstrongswan_la_LIBADD += plugins/pem/libstrongswan-pem.la
302endif
160f4c22
MW
303endif
304
552cc11b
MW
305if USE_CURL
306 SUBDIRS += plugins/curl
6ec60bb9
TB
307if MONOLITHIC
308 libstrongswan_la_LIBADD += plugins/curl/libstrongswan-curl.la
309endif
552cc11b
MW
310endif
311
2ca52c80
MW
312if USE_SOUP
313 SUBDIRS += plugins/soup
314if MONOLITHIC
315 libstrongswan_la_LIBADD += plugins/soup/libstrongswan-soup.la
316endif
317endif
318
552cc11b
MW
319if USE_LDAP
320 SUBDIRS += plugins/ldap
6ec60bb9
TB
321if MONOLITHIC
322 libstrongswan_la_LIBADD += plugins/ldap/libstrongswan-ldap.la
323endif
552cc11b
MW
324endif
325
326if USE_MYSQL
327 SUBDIRS += plugins/mysql
6ec60bb9
TB
328if MONOLITHIC
329 libstrongswan_la_LIBADD += plugins/mysql/libstrongswan-mysql.la
330endif
552cc11b
MW
331endif
332
333if USE_SQLITE
334 SUBDIRS += plugins/sqlite
6ec60bb9
TB
335if MONOLITHIC
336 libstrongswan_la_LIBADD += plugins/sqlite/libstrongswan-sqlite.la
337endif
552cc11b
MW
338endif
339
36d62fac
MW
340if USE_PADLOCK
341 SUBDIRS += plugins/padlock
6ec60bb9
TB
342if MONOLITHIC
343 libstrongswan_la_LIBADD += plugins/padlock/libstrongswan-padlock.la
344endif
36d62fac 345endif
552cc11b 346
17353034
TB
347if USE_OPENSSL
348 SUBDIRS += plugins/openssl
6ec60bb9
TB
349if MONOLITHIC
350 libstrongswan_la_LIBADD += plugins/openssl/libstrongswan-openssl.la
351endif
17353034
TB
352endif
353
4977018c
MW
354if USE_GCRYPT
355 SUBDIRS += plugins/gcrypt
6ec60bb9
TB
356if MONOLITHIC
357 libstrongswan_la_LIBADD += plugins/gcrypt/libstrongswan-gcrypt.la
358endif
4977018c
MW
359endif
360
40f130da
MW
361if USE_FIPS_PRF
362 SUBDIRS += plugins/fips_prf
363if MONOLITHIC
364 libstrongswan_la_LIBADD += plugins/fips_prf/libstrongswan-fips-prf.la
365endif
366endif
367
21c95463
MW
368if USE_AGENT
369 SUBDIRS += plugins/agent
6ec60bb9
TB
370if MONOLITHIC
371 libstrongswan_la_LIBADD += plugins/agent/libstrongswan-agent.la
372endif
21c95463
MW
373endif
374
6e862e21
MW
375if USE_PKCS11
376 SUBDIRS += plugins/pkcs11
377if MONOLITHIC
378 libstrongswan_la_LIBADD += plugins/pkcs11/libstrongswan-pkcs11.la
379endif
380endif
381
272f0e1a
MW
382if USE_CTR
383 SUBDIRS += plugins/ctr
384if MONOLITHIC
385 libstrongswan_la_LIBADD += plugins/ctr/libstrongswan-ctr.la
386endif
387endif
388
80a93a13
MW
389if USE_CCM
390 SUBDIRS += plugins/ccm
391if MONOLITHIC
392 libstrongswan_la_LIBADD += plugins/ccm/libstrongswan-ccm.la
393endif
394endif
395
1a649810
MW
396if USE_GCM
397 SUBDIRS += plugins/gcm
398if MONOLITHIC
399 libstrongswan_la_LIBADD += plugins/gcm/libstrongswan-gcm.la
400endif
401endif
402
81811a9d
MW
403if USE_TEST_VECTORS
404 SUBDIRS += plugins/test_vectors
6ec60bb9
TB
405if MONOLITHIC
406 libstrongswan_la_LIBADD += plugins/test_vectors/libstrongswan-test-vectors.la
407endif
81811a9d 408endif