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