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