Implemented an AEAD wrapper for traditional crypter/signer transforms
[strongswan.git] / src / libstrongswan / Makefile.am
1 lib_LTLIBRARIES = libstrongswan.la
2
3 libstrongswan_la_SOURCES = \
4 library.c library.h \
5 chunk.c chunk.h \
6 debug.c debug.h \
7 enum.c enum.h \
8 settings.h settings.c \
9 printf_hook.c printf_hook.h \
10 asn1/asn1.c asn1/asn1.h \
11 asn1/asn1_parser.c asn1/asn1_parser.h \
12 asn1/oid.c asn1/oid.h \
13 crypto/crypters/crypter.c crypto/crypters/crypter.h \
14 crypto/hashers/hasher.h crypto/hashers/hasher.c \
15 crypto/pkcs9.c crypto/pkcs9.h \
16 crypto/proposal/proposal_keywords.c crypto/proposal/proposal_keywords.h \
17 crypto/prfs/prf.c crypto/prfs/prf.h \
18 crypto/rngs/rng.c crypto/rngs/rng.h \
19 crypto/prf_plus.h crypto/prf_plus.c \
20 crypto/signers/signer.c crypto/signers/signer.h \
21 crypto/crypto_factory.c crypto/crypto_factory.h \
22 crypto/crypto_tester.c crypto/crypto_tester.h \
23 crypto/diffie_hellman.c crypto/diffie_hellman.h \
24 crypto/aead.c crypto/aead.h \
25 crypto/transform.c crypto/transform.h \
26 credentials/credential_factory.c credentials/credential_factory.h \
27 credentials/builder.c credentials/builder.h \
28 credentials/cred_encoding.c credentials/cred_encoding.h \
29 credentials/keys/private_key.c credentials/keys/private_key.h \
30 credentials/keys/public_key.c credentials/keys/public_key.h \
31 credentials/keys/shared_key.c credentials/keys/shared_key.h \
32 credentials/certificates/certificate.c credentials/certificates/certificate.h \
33 credentials/certificates/x509.h credentials/certificates/x509.c \
34 credentials/certificates/ac.h \
35 credentials/certificates/crl.h credentials/certificates/crl.c \
36 credentials/certificates/pkcs10.h \
37 credentials/certificates/ocsp_request.h \
38 credentials/certificates/ocsp_response.h credentials/certificates/ocsp_response.c \
39 credentials/certificates/pgp_certificate.h \
40 credentials/ietf_attributes/ietf_attributes.c credentials/ietf_attributes/ietf_attributes.h \
41 credentials/credential_manager.c credentials/credential_manager.h \
42 credentials/sets/auth_cfg_wrapper.c credentials/sets/auth_cfg_wrapper.h \
43 credentials/sets/ocsp_response_wrapper.c credentials/sets/ocsp_response_wrapper.h \
44 credentials/sets/cert_cache.c credentials/sets/cert_cache.h \
45 credentials/sets/mem_cred.c credentials/sets/mem_cred.h \
46 credentials/sets/callback_cred.c credentials/sets/callback_cred.h \
47 credentials/auth_cfg.c credentials/auth_cfg.h credentials/credential_set.h \
48 credentials/cert_validator.h \
49 database/database.h database/database_factory.h database/database_factory.c \
50 fetcher/fetcher.h fetcher/fetcher_manager.h fetcher/fetcher_manager.c \
51 selectors/traffic_selector.c selectors/traffic_selector.h \
52 threading/thread.h threading/thread.c \
53 threading/thread_value.h threading/thread_value.c \
54 threading/mutex.h threading/mutex.c threading/condvar.h  \
55 threading/rwlock.h threading/rwlock.c \
56 threading/lock_profiler.h \
57 utils.h utils.c \
58 utils/host.c utils/host.h \
59 utils/identification.c utils/identification.h \
60 utils/iterator.h \
61 utils/lexparser.c utils/lexparser.h \
62 utils/linked_list.c utils/linked_list.h \
63 utils/hashtable.c utils/hashtable.h \
64 utils/enumerator.c utils/enumerator.h \
65 utils/optionsfrom.c utils/optionsfrom.h \
66 utils/backtrace.c utils/backtrace.h \
67 plugins/plugin_loader.c plugins/plugin_loader.h plugins/plugin.h
68
69 libstrongswan_la_LIBADD = $(PTHREADLIB) $(DLLIB) $(BTLIB) $(SOCKLIB) $(RTLIB)
70
71 INCLUDES = -I$(top_srcdir)/src/libstrongswan
72 AM_CFLAGS = \
73 -DIPSEC_DIR=\"${ipsecdir}\" \
74 -DPLUGINDIR=\"${plugindir}\" \
75 -DSTRONGSWAN_CONF=\"${strongswan_conf}\"
76
77 if USE_LEAK_DETECTIVE
78   AM_CFLAGS += -DLEAK_DETECTIVE
79   libstrongswan_la_SOURCES += \
80     utils/leak_detective.c utils/leak_detective.h
81 endif
82
83 if USE_LOCK_PROFILER
84   AM_CFLAGS += -DLOCK_PROFILER
85 endif
86
87 if USE_INTEGRITY_TEST
88   AM_CFLAGS += -DINTEGRITY_TEST
89   libstrongswan_la_SOURCES += \
90     integrity_checker.c integrity_checker.h
91 endif
92
93 if USE_VSTR
94   libstrongswan_la_LIBADD += -lvstr
95 endif
96
97 EXTRA_DIST = \
98 asn1/oid.txt asn1/oid.pl \
99 crypto/proposal/proposal_keywords.txt \
100 Android.mk AndroidConfigLocal.h
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
109
110 $(srcdir)/asn1/oid.c :  $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
111                 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
112
113 $(srcdir)/asn1/oid.h :  $(srcdir)/asn1/oid.pl $(srcdir)/asn1/oid.txt
114                 (cd $(srcdir)/asn1/ && $(PERL) oid.pl)
115
116 $(srcdir)/crypto/proposal/proposal_keywords.c:  $(srcdir)/crypto/proposal/proposal_keywords.txt \
117                                                                                                 $(srcdir)/crypto/proposal/proposal_keywords.h
118                 $(GPERF) -N proposal_get_token -m 10 -C -G -c -t -D < \
119                                                                                                 $(srcdir)/crypto/proposal/proposal_keywords.txt > $@
120
121
122 # build plugins with their own Makefile
123 #######################################
124
125 if MONOLITHIC
126 SUBDIRS =
127 else
128 SUBDIRS = .
129 endif
130
131 if USE_AES
132   SUBDIRS += plugins/aes
133 if MONOLITHIC
134   libstrongswan_la_LIBADD += plugins/aes/libstrongswan-aes.la
135 endif
136 endif
137
138 if USE_DES
139   SUBDIRS += plugins/des
140 if MONOLITHIC
141   libstrongswan_la_LIBADD += plugins/des/libstrongswan-des.la
142 endif
143 endif
144
145 if USE_BLOWFISH
146   SUBDIRS += plugins/blowfish
147 if MONOLITHIC
148   libstrongswan_la_LIBADD += plugins/blowfish/libstrongswan-blowfish.la
149 endif
150 endif
151
152 if USE_MD4
153   SUBDIRS += plugins/md4
154 if MONOLITHIC
155   libstrongswan_la_LIBADD += plugins/md4/libstrongswan-md4.la
156 endif
157 endif
158
159 if USE_MD5
160   SUBDIRS += plugins/md5
161 if MONOLITHIC
162   libstrongswan_la_LIBADD += plugins/md5/libstrongswan-md5.la
163 endif
164 endif
165
166 if USE_SHA1
167   SUBDIRS += plugins/sha1
168 if MONOLITHIC
169   libstrongswan_la_LIBADD += plugins/sha1/libstrongswan-sha1.la
170 endif
171 endif
172
173 if USE_SHA2
174   SUBDIRS += plugins/sha2
175 if MONOLITHIC
176   libstrongswan_la_LIBADD += plugins/sha2/libstrongswan-sha2.la
177 endif
178 endif
179
180 if USE_GMP
181   SUBDIRS += plugins/gmp
182 if MONOLITHIC
183   libstrongswan_la_LIBADD += plugins/gmp/libstrongswan-gmp.la
184 endif
185 endif
186
187 if USE_RANDOM
188   SUBDIRS += plugins/random
189 if MONOLITHIC
190   libstrongswan_la_LIBADD += plugins/random/libstrongswan-random.la
191 endif
192 endif
193
194 if USE_HMAC
195   SUBDIRS += plugins/hmac
196 if MONOLITHIC
197   libstrongswan_la_LIBADD += plugins/hmac/libstrongswan-hmac.la
198 endif
199 endif
200
201 if USE_XCBC
202   SUBDIRS += plugins/xcbc
203 if MONOLITHIC
204   libstrongswan_la_LIBADD += plugins/xcbc/libstrongswan-xcbc.la
205 endif
206 endif
207
208 if USE_X509
209   SUBDIRS += plugins/x509
210 if MONOLITHIC
211   libstrongswan_la_LIBADD += plugins/x509/libstrongswan-x509.la
212 endif
213 endif
214
215 if USE_REVOCATION
216   SUBDIRS += plugins/revocation
217 if MONOLITHIC
218   libstrongswan_la_LIBADD += plugins/revocation/libstrongswan-revocation.la
219 endif
220 endif
221
222 if USE_PUBKEY
223   SUBDIRS += plugins/pubkey
224 if MONOLITHIC
225   libstrongswan_la_LIBADD += plugins/pubkey/libstrongswan-pubkey.la
226 endif
227 endif
228
229 if USE_PKCS1
230   SUBDIRS += plugins/pkcs1
231 if MONOLITHIC
232   libstrongswan_la_LIBADD += plugins/pkcs1/libstrongswan-pkcs1.la
233 endif
234 endif
235
236 if USE_PGP
237   SUBDIRS += plugins/pgp
238 if MONOLITHIC
239   libstrongswan_la_LIBADD += plugins/pgp/libstrongswan-pgp.la
240 endif
241 endif
242
243 if USE_DNSKEY
244   SUBDIRS += plugins/dnskey
245 if MONOLITHIC
246   libstrongswan_la_LIBADD += plugins/dnskey/libstrongswan-dnskey.la
247 endif
248 endif
249
250 if USE_PEM
251   SUBDIRS += plugins/pem
252 if MONOLITHIC
253   libstrongswan_la_LIBADD += plugins/pem/libstrongswan-pem.la
254 endif
255 endif
256
257 if USE_CURL
258   SUBDIRS += plugins/curl
259 if MONOLITHIC
260   libstrongswan_la_LIBADD += plugins/curl/libstrongswan-curl.la
261 endif
262 endif
263
264 if USE_LDAP
265   SUBDIRS += plugins/ldap
266 if MONOLITHIC
267   libstrongswan_la_LIBADD += plugins/ldap/libstrongswan-ldap.la
268 endif
269 endif
270
271 if USE_MYSQL
272   SUBDIRS += plugins/mysql
273 if MONOLITHIC
274   libstrongswan_la_LIBADD += plugins/mysql/libstrongswan-mysql.la
275 endif
276 endif
277
278 if USE_SQLITE
279   SUBDIRS += plugins/sqlite
280 if MONOLITHIC
281   libstrongswan_la_LIBADD += plugins/sqlite/libstrongswan-sqlite.la
282 endif
283 endif
284
285 if USE_PADLOCK
286   SUBDIRS += plugins/padlock
287 if MONOLITHIC
288   libstrongswan_la_LIBADD += plugins/padlock/libstrongswan-padlock.la
289 endif
290 endif
291
292 if USE_OPENSSL
293   SUBDIRS += plugins/openssl
294 if MONOLITHIC
295   libstrongswan_la_LIBADD += plugins/openssl/libstrongswan-openssl.la
296 endif
297 endif
298
299 if USE_GCRYPT
300   SUBDIRS += plugins/gcrypt
301 if MONOLITHIC
302   libstrongswan_la_LIBADD += plugins/gcrypt/libstrongswan-gcrypt.la
303 endif
304 endif
305
306 if USE_FIPS_PRF
307   SUBDIRS += plugins/fips_prf
308 if MONOLITHIC
309   libstrongswan_la_LIBADD += plugins/fips_prf/libstrongswan-fips-prf.la
310 endif
311 endif
312
313 if USE_AGENT
314   SUBDIRS += plugins/agent
315 if MONOLITHIC
316   libstrongswan_la_LIBADD += plugins/agent/libstrongswan-agent.la
317 endif
318 endif
319
320 if USE_PKCS11
321   SUBDIRS += plugins/pkcs11
322 if MONOLITHIC
323   libstrongswan_la_LIBADD += plugins/pkcs11/libstrongswan-pkcs11.la
324 endif
325 endif
326
327 if USE_CTR
328   SUBDIRS += plugins/ctr
329 if MONOLITHIC
330   libstrongswan_la_LIBADD += plugins/ctr/libstrongswan-ctr.la
331 endif
332 endif
333
334 if USE_TEST_VECTORS
335   SUBDIRS += plugins/test_vectors
336 if MONOLITHIC
337   libstrongswan_la_LIBADD += plugins/test_vectors/libstrongswan-test-vectors.la
338 endif
339 endif