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