]> git.ipfire.org Git - people/ms/strongswan.git/blob - src/libstrongswan/Makefile.am
Prototype implementation of IKE key exchange via NTRU encryption
[people/ms/strongswan.git] / src / libstrongswan / Makefile.am
1 ipseclib_LTLIBRARIES = libstrongswan.la
2
3 libstrongswan_la_SOURCES = \
4 library.c \
5 asn1/asn1.c asn1/asn1_parser.c asn1/oid.c bio/bio_reader.c bio/bio_writer.c \
6 collections/blocking_queue.c collections/enumerator.c collections/hashtable.c \
7 collections/array.c \
8 collections/linked_list.c crypto/crypters/crypter.c crypto/hashers/hasher.c \
9 crypto/proposal/proposal_keywords.c crypto/proposal/proposal_keywords_static.c \
10 crypto/prfs/prf.c crypto/prfs/mac_prf.c crypto/pkcs5.c \
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 crypto/iv/iv_gen_rand.c crypto/iv/iv_gen_seq.c \
15 credentials/credential_factory.c credentials/builder.c \
16 credentials/cred_encoding.c credentials/keys/private_key.c \
17 credentials/keys/public_key.c credentials/keys/shared_key.c \
18 credentials/certificates/certificate.c credentials/certificates/crl.c \
19 credentials/certificates/ocsp_response.c \
20 credentials/containers/container.c credentials/containers/pkcs12.c \
21 credentials/ietf_attributes/ietf_attributes.c credentials/credential_manager.c \
22 credentials/sets/auth_cfg_wrapper.c credentials/sets/ocsp_response_wrapper.c \
23 credentials/sets/cert_cache.c credentials/sets/mem_cred.c \
24 credentials/sets/callback_cred.c credentials/auth_cfg.c database/database.c \
25 database/database_factory.c fetcher/fetcher.c fetcher/fetcher_manager.c eap/eap.c \
26 ipsec/ipsec_types.c \
27 networking/host.c networking/host_resolver.c networking/packet.c \
28 networking/tun_device.c networking/streams/stream.c \
29 networking/streams/stream_service.c networking/streams/stream_manager.c \
30 pen/pen.c plugins/plugin_loader.c plugins/plugin_feature.c processing/jobs/job.c \
31 processing/jobs/callback_job.c processing/processor.c processing/scheduler.c \
32 processing/watcher.c resolver/resolver_manager.c resolver/rr_set.c \
33 selectors/traffic_selector.c threading/thread.c threading/thread_value.c \
34 threading/mutex.c threading/semaphore.c threading/rwlock.c threading/spinlock.c \
35 utils/utils.c utils/chunk.c utils/debug.c utils/enum.c utils/identification.c \
36 utils/lexparser.c utils/optionsfrom.c utils/capabilities.c utils/backtrace.c \
37 utils/settings.c
38
39 if USE_DEV_HEADERS
40 strongswan_includedir = ${dev_headers}
41 nobase_strongswan_include_HEADERS = \
42 library.h \
43 asn1/asn1.h asn1/asn1_parser.h asn1/oid.h bio/bio_reader.h bio/bio_writer.h \
44 collections/blocking_queue.h collections/enumerator.h collections/hashtable.h \
45 collections/linked_list.h collections/array.h \
46 crypto/crypters/crypter.h crypto/hashers/hasher.h crypto/mac.h \
47 crypto/proposal/proposal_keywords.h crypto/proposal/proposal_keywords_static.h \
48 crypto/prfs/prf.h crypto/prfs/mac_prf.h crypto/rngs/rng.h crypto/nonce_gen.h \
49 crypto/prf_plus.h crypto/signers/signer.h crypto/signers/mac_signer.h \
50 crypto/crypto_factory.h crypto/crypto_tester.h crypto/diffie_hellman.h \
51 crypto/aead.h crypto/transform.h crypto/pkcs5.h crypto/iv/iv_gen.h \
52 crypto/iv/iv_gen_rand.h crypto/iv/iv_gen_seq.h \
53 credentials/credential_factory.h credentials/builder.h \
54 credentials/cred_encoding.h credentials/keys/private_key.h \
55 credentials/keys/public_key.h credentials/keys/shared_key.h \
56 credentials/certificates/certificate.h credentials/certificates/x509.h \
57 credentials/certificates/ac.h credentials/certificates/crl.h \
58 credentials/certificates/pkcs10.h credentials/certificates/ocsp_request.h \
59 credentials/certificates/ocsp_response.h \
60 credentials/certificates/pgp_certificate.h \
61 credentials/containers/container.h credentials/containers/pkcs7.h \
62 credentials/containers/pkcs12.h \
63 credentials/ietf_attributes/ietf_attributes.h \
64 credentials/credential_manager.h credentials/sets/auth_cfg_wrapper.h \
65 credentials/sets/ocsp_response_wrapper.h credentials/sets/cert_cache.h \
66 credentials/sets/mem_cred.h credentials/sets/callback_cred.h \
67 credentials/auth_cfg.h credentials/credential_set.h credentials/cert_validator.h \
68 database/database.h database/database_factory.h fetcher/fetcher.h \
69 fetcher/fetcher_manager.h eap/eap.h pen/pen.h ipsec/ipsec_types.h \
70 networking/host.h networking/host_resolver.h networking/packet.h \
71 networking/tun_device.h networking/streams/stream.h \
72 networking/streams/stream_service.h networking/streams/stream_manager.h \
73 resolver/resolver.h resolver/resolver_response.h resolver/rr_set.h \
74 resolver/rr.h resolver/resolver_manager.h \
75 plugins/plugin_loader.h plugins/plugin.h plugins/plugin_feature.h \
76 processing/jobs/job.h processing/jobs/callback_job.h processing/processor.h \
77 processing/scheduler.h processing/watcher.h selectors/traffic_selector.h \
78 threading/thread.h threading/thread_value.h \
79 threading/mutex.h threading/condvar.h threading/spinlock.h threading/semaphore.h \
80 threading/rwlock.h threading/rwlock_condvar.h threading/lock_profiler.h \
81 utils/utils.h utils/chunk.h utils/debug.h utils/enum.h utils/identification.h \
82 utils/lexparser.h utils/optionsfrom.h utils/capabilities.h utils/backtrace.h \
83 utils/leak_detective.h utils/printf_hook/printf_hook.h \
84 utils/printf_hook/printf_hook_vstr.h utils/printf_hook/printf_hook_builtin.h \
85 utils/settings.h utils/integrity_checker.h
86 endif
87
88 library.lo : $(top_builddir)/config.status
89
90 libstrongswan_la_LIBADD = $(PTHREADLIB) $(DLLIB) $(BTLIB) $(SOCKLIB) $(RTLIB) $(BFDLIB) $(UNWINDLIB)
91
92 AM_CPPFLAGS = \
93 -I$(top_srcdir)/src/libstrongswan \
94 -DIPSEC_DIR=\"${ipsecdir}\" \
95 -DIPSEC_LIB_DIR=\"${ipseclibdir}\" \
96 -DPLUGINDIR=\"${plugindir}\" \
97 -DSTRONGSWAN_CONF=\"${strongswan_conf}\"
98
99 AM_CFLAGS = \
100 @COVERAGE_CFLAGS@
101
102 AM_LDFLAGS = \
103 -no-undefined
104
105 if USE_LEAK_DETECTIVE
106 AM_CPPFLAGS += -DLEAK_DETECTIVE
107 libstrongswan_la_SOURCES += utils/leak_detective.c
108 endif
109
110 if USE_LOCK_PROFILER
111 AM_CPPFLAGS += -DLOCK_PROFILER
112 endif
113
114 if USE_INTEGRITY_TEST
115 AM_CPPFLAGS += -DINTEGRITY_TEST
116 libstrongswan_la_SOURCES += utils/integrity_checker.c
117 endif
118
119 if USE_VSTR
120 libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_vstr.c
121 libstrongswan_la_LIBADD += -lvstr
122 endif
123
124 if USE_BUILTIN_PRINTF
125 libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_builtin.c
126 libstrongswan_la_LIBADD += -lm
127 endif
128
129 if !USE_BUILTIN_PRINTF
130 if !USE_VSTR
131 libstrongswan_la_SOURCES += utils/printf_hook/printf_hook_glibc.c
132 endif
133 endif
134
135 if USE_LIBCAP
136 libstrongswan_la_LIBADD += -lcap
137 endif
138
139 EXTRA_DIST = \
140 asn1/oid.txt asn1/oid.pl \
141 crypto/proposal/proposal_keywords_static.txt \
142 Android.mk AndroidConfigLocal.h
143
144 BUILT_SOURCES = \
145 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
146 $(srcdir)/crypto/proposal/proposal_keywords_static.c
147
148 MAINTAINERCLEANFILES = \
149 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
150 $(srcdir)/crypto/proposal/proposal_keywords_static.c
151
152 $(srcdir)/asn1/oid.c : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
153 $(AM_V_GEN) \
154 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
155
156 $(srcdir)/asn1/oid.h : $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
157 $(AM_V_GEN) \
158 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
159
160 $(srcdir)/crypto/proposal/proposal_keywords_static.c: $(srcdir)/crypto/proposal/proposal_keywords_static.txt \
161 $(srcdir)/crypto/proposal/proposal_keywords_static.h
162 $(AM_V_GEN) \
163 $(GPERF) -N proposal_get_token_static -m 10 -C -G -c -t -D < \
164 $(srcdir)/crypto/proposal/proposal_keywords_static.txt > $@
165
166
167 # build plugins with their own Makefile
168 #######################################
169
170 if MONOLITHIC
171 SUBDIRS =
172 else
173 SUBDIRS = .
174 endif
175
176 if USE_AF_ALG
177 SUBDIRS += plugins/af_alg
178 if MONOLITHIC
179 libstrongswan_la_LIBADD += plugins/af_alg/libstrongswan-af-alg.la
180 endif
181 endif
182
183 if USE_AES
184 SUBDIRS += plugins/aes
185 if MONOLITHIC
186 libstrongswan_la_LIBADD += plugins/aes/libstrongswan-aes.la
187 endif
188 endif
189
190 if USE_DES
191 SUBDIRS += plugins/des
192 if MONOLITHIC
193 libstrongswan_la_LIBADD += plugins/des/libstrongswan-des.la
194 endif
195 endif
196
197 if USE_BLOWFISH
198 SUBDIRS += plugins/blowfish
199 if MONOLITHIC
200 libstrongswan_la_LIBADD += plugins/blowfish/libstrongswan-blowfish.la
201 endif
202 endif
203
204 if USE_RC2
205 SUBDIRS += plugins/rc2
206 if MONOLITHIC
207 libstrongswan_la_LIBADD += plugins/rc2/libstrongswan-rc2.la
208 endif
209 endif
210
211 if USE_MD4
212 SUBDIRS += plugins/md4
213 if MONOLITHIC
214 libstrongswan_la_LIBADD += plugins/md4/libstrongswan-md4.la
215 endif
216 endif
217
218 if USE_MD5
219 SUBDIRS += plugins/md5
220 if MONOLITHIC
221 libstrongswan_la_LIBADD += plugins/md5/libstrongswan-md5.la
222 endif
223 endif
224
225 if USE_SHA1
226 SUBDIRS += plugins/sha1
227 if MONOLITHIC
228 libstrongswan_la_LIBADD += plugins/sha1/libstrongswan-sha1.la
229 endif
230 endif
231
232 if USE_SHA2
233 SUBDIRS += plugins/sha2
234 if MONOLITHIC
235 libstrongswan_la_LIBADD += plugins/sha2/libstrongswan-sha2.la
236 endif
237 endif
238
239 if USE_GMP
240 SUBDIRS += plugins/gmp
241 if MONOLITHIC
242 libstrongswan_la_LIBADD += plugins/gmp/libstrongswan-gmp.la
243 endif
244 endif
245
246 if USE_RDRAND
247 SUBDIRS += plugins/rdrand
248 if MONOLITHIC
249 libstrongswan_la_LIBADD += plugins/rdrand/libstrongswan-rdrand.la
250 endif
251 endif
252
253 if USE_RANDOM
254 SUBDIRS += plugins/random
255 if MONOLITHIC
256 libstrongswan_la_LIBADD += plugins/random/libstrongswan-random.la
257 endif
258 endif
259
260 if USE_NONCE
261 SUBDIRS += plugins/nonce
262 if MONOLITHIC
263 libstrongswan_la_LIBADD += plugins/nonce/libstrongswan-nonce.la
264 endif
265 endif
266
267 if USE_HMAC
268 SUBDIRS += plugins/hmac
269 if MONOLITHIC
270 libstrongswan_la_LIBADD += plugins/hmac/libstrongswan-hmac.la
271 endif
272 endif
273
274 if USE_CMAC
275 SUBDIRS += plugins/cmac
276 if MONOLITHIC
277 libstrongswan_la_LIBADD += plugins/cmac/libstrongswan-cmac.la
278 endif
279 endif
280
281 if USE_XCBC
282 SUBDIRS += plugins/xcbc
283 if MONOLITHIC
284 libstrongswan_la_LIBADD += plugins/xcbc/libstrongswan-xcbc.la
285 endif
286 endif
287
288 if USE_X509
289 SUBDIRS += plugins/x509
290 if MONOLITHIC
291 libstrongswan_la_LIBADD += plugins/x509/libstrongswan-x509.la
292 endif
293 endif
294
295 if USE_REVOCATION
296 SUBDIRS += plugins/revocation
297 if MONOLITHIC
298 libstrongswan_la_LIBADD += plugins/revocation/libstrongswan-revocation.la
299 endif
300 endif
301
302 if USE_CONSTRAINTS
303 SUBDIRS += plugins/constraints
304 if MONOLITHIC
305 libstrongswan_la_LIBADD += plugins/constraints/libstrongswan-constraints.la
306 endif
307 endif
308
309 if USE_PUBKEY
310 SUBDIRS += plugins/pubkey
311 if MONOLITHIC
312 libstrongswan_la_LIBADD += plugins/pubkey/libstrongswan-pubkey.la
313 endif
314 endif
315
316 if USE_PKCS1
317 SUBDIRS += plugins/pkcs1
318 if MONOLITHIC
319 libstrongswan_la_LIBADD += plugins/pkcs1/libstrongswan-pkcs1.la
320 endif
321 endif
322
323 if USE_PKCS7
324 SUBDIRS += plugins/pkcs7
325 if MONOLITHIC
326 libstrongswan_la_LIBADD += plugins/pkcs7/libstrongswan-pkcs7.la
327 endif
328 endif
329
330 if USE_PKCS8
331 SUBDIRS += plugins/pkcs8
332 if MONOLITHIC
333 libstrongswan_la_LIBADD += plugins/pkcs8/libstrongswan-pkcs8.la
334 endif
335 endif
336
337 if USE_PKCS12
338 SUBDIRS += plugins/pkcs12
339 if MONOLITHIC
340 libstrongswan_la_LIBADD += plugins/pkcs12/libstrongswan-pkcs12.la
341 endif
342 endif
343
344 if USE_PGP
345 SUBDIRS += plugins/pgp
346 if MONOLITHIC
347 libstrongswan_la_LIBADD += plugins/pgp/libstrongswan-pgp.la
348 endif
349 endif
350
351 if USE_DNSKEY
352 SUBDIRS += plugins/dnskey
353 if MONOLITHIC
354 libstrongswan_la_LIBADD += plugins/dnskey/libstrongswan-dnskey.la
355 endif
356 endif
357
358 if USE_SSHKEY
359 SUBDIRS += plugins/sshkey
360 if MONOLITHIC
361 libstrongswan_la_LIBADD += plugins/sshkey/libstrongswan-sshkey.la
362 endif
363 endif
364
365 if USE_PEM
366 SUBDIRS += plugins/pem
367 if MONOLITHIC
368 libstrongswan_la_LIBADD += plugins/pem/libstrongswan-pem.la
369 endif
370 endif
371
372 if USE_CURL
373 SUBDIRS += plugins/curl
374 if MONOLITHIC
375 libstrongswan_la_LIBADD += plugins/curl/libstrongswan-curl.la
376 endif
377 endif
378
379 if USE_UNBOUND
380 SUBDIRS += plugins/unbound
381 if MONOLITHIC
382 libstrongswan_la_LIBADD += plugins/unbound/libstrongswan-unbound.la
383 endif
384 endif
385
386 if USE_SOUP
387 SUBDIRS += plugins/soup
388 if MONOLITHIC
389 libstrongswan_la_LIBADD += plugins/soup/libstrongswan-soup.la
390 endif
391 endif
392
393 if USE_LDAP
394 SUBDIRS += plugins/ldap
395 if MONOLITHIC
396 libstrongswan_la_LIBADD += plugins/ldap/libstrongswan-ldap.la
397 endif
398 endif
399
400 if USE_MYSQL
401 SUBDIRS += plugins/mysql
402 if MONOLITHIC
403 libstrongswan_la_LIBADD += plugins/mysql/libstrongswan-mysql.la
404 endif
405 endif
406
407 if USE_SQLITE
408 SUBDIRS += plugins/sqlite
409 if MONOLITHIC
410 libstrongswan_la_LIBADD += plugins/sqlite/libstrongswan-sqlite.la
411 endif
412 endif
413
414 if USE_PADLOCK
415 SUBDIRS += plugins/padlock
416 if MONOLITHIC
417 libstrongswan_la_LIBADD += plugins/padlock/libstrongswan-padlock.la
418 endif
419 endif
420
421 if USE_OPENSSL
422 SUBDIRS += plugins/openssl
423 if MONOLITHIC
424 libstrongswan_la_LIBADD += plugins/openssl/libstrongswan-openssl.la
425 endif
426 endif
427
428 if USE_GCRYPT
429 SUBDIRS += plugins/gcrypt
430 if MONOLITHIC
431 libstrongswan_la_LIBADD += plugins/gcrypt/libstrongswan-gcrypt.la
432 endif
433 endif
434
435 if USE_FIPS_PRF
436 SUBDIRS += plugins/fips_prf
437 if MONOLITHIC
438 libstrongswan_la_LIBADD += plugins/fips_prf/libstrongswan-fips-prf.la
439 endif
440 endif
441
442 if USE_AGENT
443 SUBDIRS += plugins/agent
444 if MONOLITHIC
445 libstrongswan_la_LIBADD += plugins/agent/libstrongswan-agent.la
446 endif
447 endif
448
449 if USE_KEYCHAIN
450 SUBDIRS += plugins/keychain
451 if MONOLITHIC
452 libstrongswan_la_LIBADD += plugins/keychain/libstrongswan-keychain.la
453 endif
454 endif
455
456 if USE_PKCS11
457 SUBDIRS += plugins/pkcs11
458 if MONOLITHIC
459 libstrongswan_la_LIBADD += plugins/pkcs11/libstrongswan-pkcs11.la
460 endif
461 endif
462
463 if USE_CTR
464 SUBDIRS += plugins/ctr
465 if MONOLITHIC
466 libstrongswan_la_LIBADD += plugins/ctr/libstrongswan-ctr.la
467 endif
468 endif
469
470 if USE_CCM
471 SUBDIRS += plugins/ccm
472 if MONOLITHIC
473 libstrongswan_la_LIBADD += plugins/ccm/libstrongswan-ccm.la
474 endif
475 endif
476
477 if USE_GCM
478 SUBDIRS += plugins/gcm
479 if MONOLITHIC
480 libstrongswan_la_LIBADD += plugins/gcm/libstrongswan-gcm.la
481 endif
482 endif
483
484 if USE_NTRU
485 SUBDIRS += plugins/ntru
486 if MONOLITHIC
487 libstrongswan_la_LIBADD += plugins/ntru/libstrongswan-ntru.la
488 endif
489 endif
490
491 if USE_TEST_VECTORS
492 SUBDIRS += plugins/test_vectors
493 if MONOLITHIC
494 libstrongswan_la_LIBADD += plugins/test_vectors/libstrongswan-test-vectors.la
495 endif
496 endif
497
498 if MONOLITHIC
499 SUBDIRS += .
500 endif
501 SUBDIRS += tests