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