libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / src / libsodium / Makefile.am
blobc5f51abad7182199868ba4660493d71f085c3ef4
1 lib_LTLIBRARIES = \
2         libsodium.la
4 libsodium_la_SOURCES = \
5         crypto_auth/crypto_auth.c \
6         crypto_auth/hmacsha256/auth_hmacsha256_api.c \
7         crypto_auth/hmacsha256/ref/api.h \
8         crypto_auth/hmacsha256/ref/hmac_hmacsha256.c \
9         crypto_auth/hmacsha256/ref/verify_hmacsha256.c \
10         crypto_auth/hmacsha512256/auth_hmacsha512256_api.c \
11         crypto_auth/hmacsha512256/ref/api.h \
12         crypto_auth/hmacsha512256/ref/hmac_hmacsha512256.c \
13         crypto_auth/hmacsha512256/ref/verify_hmacsha512256.c \
14         crypto_box/crypto_box.c \
15         crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305_api.c \
16         crypto_box/curve25519xsalsa20poly1305/ref/api.h \
17         crypto_box/curve25519xsalsa20poly1305/ref/after_curve25519xsalsa20poly1305.c \
18         crypto_box/curve25519xsalsa20poly1305/ref/before_curve25519xsalsa20poly1305.c \
19         crypto_box/curve25519xsalsa20poly1305/ref/box_curve25519xsalsa20poly1305.c \
20         crypto_box/curve25519xsalsa20poly1305/ref/keypair_curve25519xsalsa20poly1305.c \
21         crypto_core/hsalsa20/ref2/core_hsalsa20.c \
22         crypto_core/hsalsa20/core_hsalsa20_api.c \
23         crypto_core/hsalsa20/ref2/api.h \
24         crypto_core/salsa20/ref/core_salsa20.c \
25         crypto_core/salsa20/core_salsa20_api.c \
26         crypto_core/salsa20/ref/api.h \
27         crypto_core/salsa2012/ref/core_salsa2012.c \
28         crypto_core/salsa2012/core_salsa2012_api.c \
29         crypto_core/salsa2012/ref/api.h \
30         crypto_core/salsa208/ref/core_salsa208.c \
31         crypto_core/salsa208/core_salsa208_api.c \
32         crypto_core/salsa208/ref/api.h \
33         crypto_generichash/crypto_generichash.c \
34         crypto_generichash/blake2/generichash_blake2_api.c \
35         crypto_generichash/blake2/ref/api.h \
36         crypto_generichash/blake2/ref/blake2-impl.h \
37         crypto_generichash/blake2/ref/blake2.h \
38         crypto_generichash/blake2/ref/blake2b-ref.c \
39         crypto_generichash/blake2/ref/generichash_blake2b.c \
40         crypto_hash/crypto_hash.c \
41         crypto_hash/sha256/hash_sha256_api.c \
42         crypto_hash/sha256/ref/api.h \
43         crypto_hash/sha256/ref/hash_sha256.c \
44         crypto_hash/sha512/hash_sha512_api.c \
45         crypto_hash/sha512/ref/api.h \
46         crypto_hash/sha512/ref/hash_sha512.c \
47         crypto_hashblocks/sha256/ref/blocks_sha256.c \
48         crypto_hashblocks/sha256/hashblocks_sha256_api.c \
49         crypto_hashblocks/sha256/ref/api.h \
50         crypto_hashblocks/sha512/ref/blocks_sha512.c \
51         crypto_hashblocks/sha512/hashblocks_sha512_api.c \
52         crypto_hashblocks/sha512/ref/api.h \
53         crypto_onetimeauth/crypto_onetimeauth.c \
54         crypto_onetimeauth/poly1305/onetimeauth_poly1305.c \
55         crypto_onetimeauth/poly1305/onetimeauth_poly1305_api.c \
56         crypto_onetimeauth/poly1305/onetimeauth_poly1305_try.c \
57         crypto_onetimeauth/poly1305/53/api.h \
58         crypto_onetimeauth/poly1305/53/auth_poly1305_53.c \
59         crypto_onetimeauth/poly1305/53/verify_poly1305_53.c \
60         crypto_onetimeauth/poly1305/ref/api.h \
61         crypto_onetimeauth/poly1305/ref/auth_poly1305_ref.c \
62         crypto_onetimeauth/poly1305/ref/verify_poly1305_ref.c \
63         crypto_scalarmult/crypto_scalarmult.c \
64         crypto_secretbox/crypto_secretbox.c \
65         crypto_secretbox/xsalsa20poly1305/secretbox_xsalsa20poly1305_api.c \
66         crypto_secretbox/xsalsa20poly1305/ref/api.h \
67         crypto_secretbox/xsalsa20poly1305/ref/box_xsalsa20poly1305.c \
68         crypto_shorthash/crypto_shorthash.c \
69         crypto_shorthash/siphash24/shorthash_siphash24_api.c \
70         crypto_shorthash/siphash24/ref/api.h \
71         crypto_shorthash/siphash24/ref/shorthash_siphash24.c \
72         crypto_sign/crypto_sign.c \
73         crypto_sign/ed25519/ref10/base.h \
74         crypto_sign/ed25519/ref10/base2.h \
75         crypto_sign/ed25519/sign_ed25519_api.c \
76         crypto_sign/ed25519/ref10/api.h \
77         crypto_sign/ed25519/ref10/d.h \
78         crypto_sign/ed25519/ref10/d2.h \
79         crypto_sign/ed25519/ref10/fe.h \
80         crypto_sign/ed25519/ref10/fe_0.c \
81         crypto_sign/ed25519/ref10/fe_1.c \
82         crypto_sign/ed25519/ref10/fe_add.c \
83         crypto_sign/ed25519/ref10/fe_cmov.c \
84         crypto_sign/ed25519/ref10/fe_copy.c \
85         crypto_sign/ed25519/ref10/fe_frombytes.c \
86         crypto_sign/ed25519/ref10/fe_invert.c \
87         crypto_sign/ed25519/ref10/fe_isnegative.c \
88         crypto_sign/ed25519/ref10/fe_isnonzero.c \
89         crypto_sign/ed25519/ref10/fe_mul.c \
90         crypto_sign/ed25519/ref10/fe_neg.c \
91         crypto_sign/ed25519/ref10/fe_pow22523.c \
92         crypto_sign/ed25519/ref10/fe_sq.c \
93         crypto_sign/ed25519/ref10/fe_sq2.c \
94         crypto_sign/ed25519/ref10/fe_sub.c \
95         crypto_sign/ed25519/ref10/fe_tobytes.c \
96         crypto_sign/ed25519/ref10/ge.h \
97         crypto_sign/ed25519/ref10/ge_add.c \
98         crypto_sign/ed25519/ref10/ge_add.h \
99         crypto_sign/ed25519/ref10/ge_double_scalarmult.c \
100         crypto_sign/ed25519/ref10/ge_frombytes.c \
101         crypto_sign/ed25519/ref10/ge_madd.c \
102         crypto_sign/ed25519/ref10/ge_madd.h \
103         crypto_sign/ed25519/ref10/ge_msub.c \
104         crypto_sign/ed25519/ref10/ge_msub.h \
105         crypto_sign/ed25519/ref10/ge_p1p1_to_p2.c \
106         crypto_sign/ed25519/ref10/ge_p1p1_to_p3.c \
107         crypto_sign/ed25519/ref10/ge_p2_0.c \
108         crypto_sign/ed25519/ref10/ge_p2_dbl.c \
109         crypto_sign/ed25519/ref10/ge_p2_dbl.h \
110         crypto_sign/ed25519/ref10/ge_p3_0.c \
111         crypto_sign/ed25519/ref10/ge_p3_dbl.c \
112         crypto_sign/ed25519/ref10/ge_p3_to_cached.c \
113         crypto_sign/ed25519/ref10/ge_p3_to_p2.c \
114         crypto_sign/ed25519/ref10/ge_p3_tobytes.c \
115         crypto_sign/ed25519/ref10/ge_precomp_0.c \
116         crypto_sign/ed25519/ref10/ge_scalarmult_base.c \
117         crypto_sign/ed25519/ref10/ge_sub.c \
118         crypto_sign/ed25519/ref10/ge_sub.h \
119         crypto_sign/ed25519/ref10/ge_tobytes.c \
120         crypto_sign/ed25519/ref10/keypair.c \
121         crypto_sign/ed25519/ref10/open.c \
122         crypto_sign/ed25519/ref10/pow22523.h \
123         crypto_sign/ed25519/ref10/pow225521.h \
124         crypto_sign/ed25519/ref10/sc.h \
125         crypto_sign/ed25519/ref10/sc_muladd.c \
126         crypto_sign/ed25519/ref10/sc_reduce.c \
127         crypto_sign/ed25519/ref10/sign.c \
128         crypto_sign/ed25519/ref10/sqrtm1.h \
129         crypto_sign/edwards25519sha512batch/sign_edwards25519sha512batch_api.c \
130         crypto_sign/edwards25519sha512batch/ref/api.h \
131         crypto_sign/edwards25519sha512batch/ref/fe25519.h \
132         crypto_sign/edwards25519sha512batch/ref/fe25519_edwards25519sha512batch.c \
133         crypto_sign/edwards25519sha512batch/ref/ge25519.h \
134         crypto_sign/edwards25519sha512batch/ref/ge25519_edwards25519sha512batch.c \
135         crypto_sign/edwards25519sha512batch/ref/sc25519.h \
136         crypto_sign/edwards25519sha512batch/ref/sc25519_edwards25519sha512batch.c \
137         crypto_sign/edwards25519sha512batch/ref/sign_edwards25519sha512batch.c \
138         crypto_stream/crypto_stream.c \
139         crypto_stream/aes128ctr/portable/afternm_aes128ctr.c \
140         crypto_stream/aes128ctr/stream_aes128ctr_api.c \
141         crypto_stream/aes128ctr/portable/api.h \
142         crypto_stream/aes128ctr/portable/beforenm_aes128ctr.c \
143         crypto_stream/aes128ctr/portable/common.h \
144         crypto_stream/aes128ctr/portable/common_aes128ctr.c \
145         crypto_stream/aes128ctr/portable/consts.h \
146         crypto_stream/aes128ctr/portable/consts_aes128ctr.c \
147         crypto_stream/aes128ctr/portable/int128.h \
148         crypto_stream/aes128ctr/portable/int128_aes128ctr.c \
149         crypto_stream/aes128ctr/portable/stream_aes128ctr.c \
150         crypto_stream/aes128ctr/portable/types.h \
151         crypto_stream/aes128ctr/portable/xor_afternm_aes128ctr.c \
152         crypto_stream/aes256estream/hongjun/aes-table.h \
153         crypto_stream/aes256estream/hongjun/aes256-ctr.c \
154         crypto_stream/aes256estream/hongjun/aes256.h \
155         crypto_stream/aes256estream/stream_aes256estream_api.c \
156         crypto_stream/aes256estream/hongjun/api.h \
157         crypto_stream/aes256estream/hongjun/ecrypt-sync.h \
158         crypto_stream/salsa2012/stream_salsa2012_api.c \
159         crypto_stream/salsa2012/ref/api.h \
160         crypto_stream/salsa2012/ref/stream_salsa2012.c \
161         crypto_stream/salsa2012/ref/xor_salsa2012.c \
162         crypto_stream/salsa208/stream_salsa208_api.c \
163         crypto_stream/salsa208/ref/api.h \
164         crypto_stream/salsa208/ref/stream_salsa208.c \
165         crypto_stream/salsa208/ref/xor_salsa208.c \
166         crypto_stream/xsalsa20/stream_xsalsa20_api.c \
167         crypto_stream/xsalsa20/ref/api.h \
168         crypto_stream/xsalsa20/ref/stream_xsalsa20.c \
169         crypto_stream/xsalsa20/ref/xor_xsalsa20.c \
170         crypto_verify/16/verify_16_api.c \
171         crypto_verify/16/ref/api.h \
172         crypto_verify/16/ref/verify_16.c \
173         crypto_verify/32/verify_32_api.c \
174         crypto_verify/32/ref/api.h \
175         crypto_verify/32/ref/verify_32.c \
176         randombytes/randombytes.c \
177         randombytes/salsa20/randombytes_salsa20_random.c \
178         randombytes/sysrandom/randombytes_sysrandom.c \
179         sodium/compat.c \
180         sodium/core.c \
181         sodium/utils.c \
182         sodium/version.c
184 if HAVE_TI_MODE
185 libsodium_la_SOURCES += \
186         crypto_scalarmult/curve25519/donna_c64/api.h \
187         crypto_scalarmult/curve25519/donna_c64/base_curve25519_donna_c64.c \
188         crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.c
189 else
190 libsodium_la_SOURCES += \
191         crypto_scalarmult/curve25519/ref/api.h \
192         crypto_scalarmult/curve25519/ref/base_curve25519_ref.c \
193         crypto_scalarmult/curve25519/ref/smult_curve25519_ref.c
194 endif
196 if HAVE_AMD64_ASM
197 libsodium_la_SOURCES += \
198         crypto_stream/salsa20/amd64_xmm6/api.h \
199         crypto_stream/salsa20/amd64_xmm6/stream_salsa20_amd64_xmm6.s
200 else
201 libsodium_la_SOURCES += \
202         crypto_stream/salsa20/ref/api.h \
203         crypto_stream/salsa20/ref/stream_salsa20_ref.c \
204         crypto_stream/salsa20/ref/xor_salsa20_ref.c
205 endif
207 libsodium_la_LDFLAGS = \
208         $(AM_LDFLAGS) \
209         -export-dynamic \
210         -no-undefined \
211         $(LIBTOOL_EXTRA_FLAGS)
213 libsodium_la_CPPFLAGS = \
214         $(LTDLINCL) \
215         -I$(srcdir)/include/sodium \
216         -I$(builddir)/include/sodium
218 if HAVE_LD_OUTPUT_DEF
219 libsodium_la_LDFLAGS += -Wl,--output-def,libsodium-$(DLL_VERSION).def
220 defexecdir = $(bindir)
221 defexec_DATA = libsodium-$(DLL_VERSION).def
222 DISTCLEANFILES = $(defexec_DATA)
223 endif
225 SUBDIRS = \
226         include