]>
Commit | Line | Data |
---|---|---|
f2c2d395 MW |
1 | lib_LTLIBRARIES = libstrongswan.la |
2 | ||
55434a1b AS |
3 | if USE_INTEGRITY_TEST |
4 | libstrongswan_la_SOURCES = \ | |
5 | fips/fips_canister_start.c \ | |
6 | fips/fips.c fips/fips.h | |
7 | else | |
8 | libstrongswan_la_SOURCES = | |
9 | endif | |
10 | ||
11 | libstrongswan_la_SOURCES += \ | |
307b4ded | 12 | library.c library.h \ |
db7ef624 MW |
13 | chunk.c chunk.h \ |
14 | debug.c debug.h \ | |
15 | enum.c enum.h \ | |
552cc11b | 16 | settings.h settings.c \ |
db7ef624 | 17 | printf_hook.c printf_hook.h \ |
307b4ded | 18 | asn1/asn1.c asn1/asn1.h \ |
d3d7e46b | 19 | asn1/asn1_parser.c asn1/asn1_parser.h \ |
2ef41cda | 20 | asn1/oid.c asn1/oid.h \ |
307b4ded | 21 | asn1/pem.c asn1/pem.h \ |
307b4ded | 22 | crypto/crypters/crypter.c crypto/crypters/crypter.h \ |
307b4ded | 23 | crypto/hashers/hasher.h crypto/hashers/hasher.c \ |
e8bfe742 | 24 | crypto/pkcs9.c crypto/pkcs9.h \ |
2ef41cda | 25 | crypto/prfs/prf.c crypto/prfs/prf.h \ |
6a365f07 | 26 | crypto/rngs/rng.c crypto/rngs/rng.h \ |
2ef41cda | 27 | crypto/prf_plus.h crypto/prf_plus.c \ |
2ef41cda | 28 | crypto/signers/signer.c crypto/signers/signer.h \ |
552cc11b MW |
29 | crypto/diffie_hellman.c crypto/diffie_hellman.h \ |
30 | crypto/crypto_factory.c crypto/crypto_factory.h \ | |
31 | credentials/credential_factory.c credentials/credential_factory.h \ | |
32 | credentials/builder.c credentials/builder.h \ | |
33 | credentials/keys/private_key.c credentials/keys/private_key.h \ | |
34 | credentials/keys/public_key.c credentials/keys/public_key.h \ | |
35 | credentials/keys/shared_key.c credentials/keys/shared_key.h \ | |
36 | credentials/certificates/certificate.c credentials/certificates/certificate.h \ | |
37 | credentials/certificates/x509.h credentials/certificates/x509.c \ | |
26930a8c | 38 | credentials/certificates/ac.h \ |
552cc11b | 39 | credentials/certificates/crl.h credentials/certificates/crl.c \ |
7b88a983 | 40 | credentials/certificates/ocsp_request.h \ |
552cc11b MW |
41 | credentials/certificates/ocsp_response.h credentials/certificates/ocsp_response.c \ |
42 | fetcher/fetcher.h fetcher/fetcher_manager.h fetcher/fetcher_manager.c \ | |
43 | database/database.h database/database_factory.h database/database_factory.c \ | |
44 | utils.h utils.c \ | |
307b4ded | 45 | utils/host.c utils/host.h \ |
2ef41cda AS |
46 | utils/identification.c utils/identification.h \ |
47 | utils/iterator.h \ | |
307b4ded | 48 | utils/lexparser.c utils/lexparser.h \ |
2ef41cda | 49 | utils/linked_list.c utils/linked_list.h \ |
0948edbb | 50 | utils/hashtable.c utils/hashtable.h \ |
d62a4526 | 51 | utils/enumerator.c utils/enumerator.h \ |
b4979ff7 | 52 | utils/optionsfrom.c utils/optionsfrom.h \ |
552cc11b | 53 | utils/mutex.c utils/mutex.h \ |
f7237cf3 | 54 | utils/backtrace.c utils/backtrace.h \ |
552cc11b | 55 | plugins/plugin_loader.c plugins/plugin_loader.h plugins/plugin.h |
f2c2d395 | 56 | |
552cc11b | 57 | libstrongswan_la_LIBADD = -lpthread -ldl |
f2c2d395 MW |
58 | |
59 | INCLUDES = -I$(top_srcdir)/src/libstrongswan | |
1aad8bdf AS |
60 | AM_CFLAGS = -DIPSEC_DIR=\"${ipsecdir}\" \ |
61 | -DIPSEC_PLUGINDIR=\"${plugindir}\" | |
d6c32b83 | 62 | |
4acc8989 | 63 | if USE_LEAK_DETECTIVE |
552cc11b | 64 | AM_CFLAGS += -DLEAK_DETECTIVE |
a9184df3 MW |
65 | libstrongswan_la_SOURCES += utils/leak_detective.c utils/leak_detective.h |
66 | endif | |
67 | ||
02140125 MW |
68 | if USE_LOCK_PROFILER |
69 | AM_CFLAGS += -DLOCK_PROFILER | |
70 | endif | |
71 | ||
a9184df3 MW |
72 | if USE_INTEGRITY_TEST |
73 | libstrongswan_la_SOURCES += \ | |
74 | fips/fips_canister_end.c | |
241d2ff3 AS |
75 | endif |
76 | ||
55434a1b AS |
77 | EXTRA_DIST = asn1/oid.txt asn1/oid.pl |
78 | BUILT_SOURCES = asn1/oid.c asn1/oid.h | |
79 | MAINTAINERCLEANFILES = asn1/oid.c asn1/oid.h | |
80 | ||
1adaa02b | 81 | asn1/oid.c : asn1/oid.pl asn1/oid.txt |
104c28d6 | 82 | (cd `dirname $<` && $(PERL) `basename $<`) |
d6c32b83 | 83 | |
1adaa02b | 84 | asn1/oid.h : asn1/oid.pl asn1/oid.txt |
104c28d6 | 85 | (cd `dirname $<` && $(PERL) `basename $<`) |
55434a1b | 86 | |
552cc11b MW |
87 | |
88 | # build plugins with their own Makefile | |
89 | ####################################### | |
90 | ||
82d8368b | 91 | SUBDIRS = . |
552cc11b MW |
92 | |
93 | if USE_AES | |
94 | SUBDIRS += plugins/aes | |
95 | endif | |
96 | ||
97 | if USE_DES | |
98 | SUBDIRS += plugins/des | |
99 | endif | |
100 | ||
1e0d1ae2 AS |
101 | if USE_MD4 |
102 | SUBDIRS += plugins/md4 | |
103 | endif | |
104 | ||
552cc11b MW |
105 | if USE_MD5 |
106 | SUBDIRS += plugins/md5 | |
107 | endif | |
108 | ||
109 | if USE_SHA1 | |
110 | SUBDIRS += plugins/sha1 | |
111 | endif | |
112 | ||
113 | if USE_SHA2 | |
114 | SUBDIRS += plugins/sha2 | |
115 | endif | |
116 | ||
117 | if USE_FIPS_PRF | |
118 | SUBDIRS += plugins/fips_prf | |
119 | endif | |
120 | ||
121 | if USE_GMP | |
122 | SUBDIRS += plugins/gmp | |
123 | endif | |
124 | ||
6a365f07 MW |
125 | if USE_RANDOM |
126 | SUBDIRS += plugins/random | |
127 | endif | |
128 | ||
552cc11b MW |
129 | if USE_HMAC |
130 | SUBDIRS += plugins/hmac | |
131 | endif | |
132 | ||
27d04e05 MW |
133 | if USE_XCBC |
134 | SUBDIRS += plugins/xcbc | |
135 | endif | |
136 | ||
552cc11b MW |
137 | if USE_X509 |
138 | SUBDIRS += plugins/x509 | |
139 | endif | |
140 | ||
affd7a90 MW |
141 | if USE_PUBKEY |
142 | SUBDIRS += plugins/pubkey | |
143 | endif | |
144 | ||
552cc11b MW |
145 | if USE_CURL |
146 | SUBDIRS += plugins/curl | |
147 | endif | |
148 | ||
149 | if USE_LDAP | |
150 | SUBDIRS += plugins/ldap | |
151 | endif | |
152 | ||
153 | if USE_MYSQL | |
154 | SUBDIRS += plugins/mysql | |
155 | endif | |
156 | ||
157 | if USE_SQLITE | |
158 | SUBDIRS += plugins/sqlite | |
159 | endif | |
160 | ||
36d62fac MW |
161 | if USE_PADLOCK |
162 | SUBDIRS += plugins/padlock | |
163 | endif | |
552cc11b | 164 | |
17353034 TB |
165 | if USE_OPENSSL |
166 | SUBDIRS += plugins/openssl | |
167 | endif | |
168 | ||
21c95463 MW |
169 | if USE_AGENT |
170 | SUBDIRS += plugins/agent | |
171 | endif | |
172 | ||
d8b45dcd | 173 | if USE_INTEGRITY_TEST |
af165431 | 174 | SUBDIRS += fips |
d8b45dcd | 175 | endif |