cargo: Add geoip db tool to top level workspace
[tor.git] / src / ext / include.am
blobdad6a592b7bf8305cb288ade94885dd109b75186
2 AM_CPPFLAGS += \
3   -I$(srcdir)/src/ext/ \
4   -I$(srcdir)/src/ext/equix/hashx/include/
6 EXTRA_DIST += src/ext/ext.md
8 EXTHEADERS = \
9   src/ext/ht.h          \
10   src/ext/byteorder.h   \
11   src/ext/tinytest.h    \
12   src/ext/tor_readpassphrase.h \
13   src/ext/strlcat.c     \
14   src/ext/strlcpy.c     \
15   src/ext/getdelim.c    \
16   src/ext/tinytest_macros.h \
17   src/ext/tor_queue.h   \
18   src/ext/siphash.h \
19   src/ext/compat_blake2.h \
20   src/ext/timeouts/timeout.h \
21   src/ext/timeouts/timeout-debug.h \
22   src/ext/timeouts/timeout-bitops.c \
23   src/ext/timeouts/timeout.c
25 noinst_HEADERS+= $(EXTHEADERS)
27 src_ext_ed25519_ref10_libed25519_ref10_a_CFLAGS=\
28   @CFLAGS_CONSTTIME@
30 src_ext_ed25519_ref10_libed25519_ref10_a_SOURCES= \
31         src/ext/ed25519/ref10/fe_0.c \
32         src/ext/ed25519/ref10/fe_1.c \
33         src/ext/ed25519/ref10/fe_add.c \
34         src/ext/ed25519/ref10/fe_cmov.c \
35         src/ext/ed25519/ref10/fe_copy.c \
36         src/ext/ed25519/ref10/fe_frombytes.c \
37         src/ext/ed25519/ref10/fe_invert.c \
38         src/ext/ed25519/ref10/fe_isnegative.c \
39         src/ext/ed25519/ref10/fe_isnonzero.c \
40         src/ext/ed25519/ref10/fe_mul.c \
41         src/ext/ed25519/ref10/fe_neg.c \
42         src/ext/ed25519/ref10/fe_pow22523.c \
43         src/ext/ed25519/ref10/fe_sq.c \
44         src/ext/ed25519/ref10/fe_sq2.c \
45         src/ext/ed25519/ref10/fe_sub.c \
46         src/ext/ed25519/ref10/fe_tobytes.c \
47         src/ext/ed25519/ref10/ge_add.c \
48         src/ext/ed25519/ref10/ge_double_scalarmult.c \
49         src/ext/ed25519/ref10/ge_frombytes.c \
50         src/ext/ed25519/ref10/ge_madd.c \
51         src/ext/ed25519/ref10/ge_msub.c \
52         src/ext/ed25519/ref10/ge_p1p1_to_p2.c \
53         src/ext/ed25519/ref10/ge_p1p1_to_p3.c \
54         src/ext/ed25519/ref10/ge_p2_0.c \
55         src/ext/ed25519/ref10/ge_p2_dbl.c \
56         src/ext/ed25519/ref10/ge_p3_0.c \
57         src/ext/ed25519/ref10/ge_p3_dbl.c \
58         src/ext/ed25519/ref10/ge_p3_to_cached.c \
59         src/ext/ed25519/ref10/ge_p3_to_p2.c \
60         src/ext/ed25519/ref10/ge_p3_tobytes.c \
61         src/ext/ed25519/ref10/ge_precomp_0.c \
62         src/ext/ed25519/ref10/ge_scalarmult_base.c \
63         src/ext/ed25519/ref10/ge_sub.c \
64         src/ext/ed25519/ref10/ge_tobytes.c \
65         src/ext/ed25519/ref10/keypair.c \
66         src/ext/ed25519/ref10/open.c \
67         src/ext/ed25519/ref10/sc_muladd.c \
68         src/ext/ed25519/ref10/sc_reduce.c \
69         src/ext/ed25519/ref10/sign.c \
70         src/ext/ed25519/ref10/keyconv.c \
71         src/ext/ed25519/ref10/blinding.c
73 ED25519_REF10_HDRS = \
74         src/ext/ed25519/ref10/api.h \
75         src/ext/ed25519/ref10/base.h \
76         src/ext/ed25519/ref10/base2.h \
77         src/ext/ed25519/ref10/crypto_hash_sha512.h \
78         src/ext/ed25519/ref10/crypto_int32.h \
79         src/ext/ed25519/ref10/crypto_int64.h \
80         src/ext/ed25519/ref10/crypto_sign.h \
81         src/ext/ed25519/ref10/crypto_uint32.h \
82         src/ext/ed25519/ref10/crypto_uint64.h \
83         src/ext/ed25519/ref10/crypto_verify_32.h \
84         src/ext/ed25519/ref10/d.h \
85         src/ext/ed25519/ref10/d2.h \
86         src/ext/ed25519/ref10/ed25519_ref10.h \
87         src/ext/ed25519/ref10/fe.h \
88         src/ext/ed25519/ref10/ge.h \
89         src/ext/ed25519/ref10/ge_add.h \
90         src/ext/ed25519/ref10/ge_madd.h \
91         src/ext/ed25519/ref10/ge_msub.h \
92         src/ext/ed25519/ref10/ge_p2_dbl.h \
93         src/ext/ed25519/ref10/ge_sub.h \
94         src/ext/ed25519/ref10/pow22523.h \
95         src/ext/ed25519/ref10/pow225521.h \
96         src/ext/ed25519/ref10/randombytes.h \
97         src/ext/ed25519/ref10/sc.h \
98         src/ext/ed25519/ref10/sqrtm1.h
100 noinst_HEADERS += $(ED25519_REF10_HDRS)
102 LIBED25519_REF10=src/ext/ed25519/ref10/libed25519_ref10.a
103 noinst_LIBRARIES += $(LIBED25519_REF10)
105 src_ext_ed25519_donna_libed25519_donna_a_CFLAGS=\
106   @CFLAGS_CONSTTIME@ \
107   -DED25519_CUSTOMRANDOM \
108   -DED25519_CUSTOMHASH \
109   -DED25519_SUFFIX=_donna
111 src_ext_ed25519_donna_libed25519_donna_a_SOURCES= \
112         src/ext/ed25519/donna/ed25519_tor.c
114 ED25519_DONNA_HDRS = \
115         src/ext/ed25519/donna/curve25519-donna-32bit.h \
116         src/ext/ed25519/donna/curve25519-donna-64bit.h \
117         src/ext/ed25519/donna/curve25519-donna-helpers.h \
118         src/ext/ed25519/donna/curve25519-donna-sse2.h \
119         src/ext/ed25519/donna/ed25519-donna-32bit-sse2.h \
120         src/ext/ed25519/donna/ed25519-donna-32bit-tables.h \
121         src/ext/ed25519/donna/ed25519-donna-64bit-sse2.h \
122         src/ext/ed25519/donna/ed25519-donna-64bit-tables.h \
123         src/ext/ed25519/donna/ed25519-donna-64bit-x86-32bit.h \
124         src/ext/ed25519/donna/ed25519-donna-64bit-x86.h \
125         src/ext/ed25519/donna/ed25519-donna-basepoint-table.h \
126         src/ext/ed25519/donna/ed25519-donna-batchverify.h \
127         src/ext/ed25519/donna/ed25519-donna.h \
128         src/ext/ed25519/donna/ed25519-donna-impl-base.h \
129         src/ext/ed25519/donna/ed25519-donna-impl-sse2.h \
130         src/ext/ed25519/donna/ed25519-donna-portable.h \
131         src/ext/ed25519/donna/ed25519-donna-portable-identify.h \
132         src/ext/ed25519/donna/ed25519_donna_tor.h \
133         src/ext/ed25519/donna/ed25519.h \
134         src/ext/ed25519/donna/ed25519-hash-custom.h \
135         src/ext/ed25519/donna/ed25519-hash.h \
136         src/ext/ed25519/donna/ed25519-randombytes-custom.h \
137         src/ext/ed25519/donna/ed25519-randombytes.h \
138         src/ext/ed25519/donna/modm-donna-32bit.h \
139         src/ext/ed25519/donna/modm-donna-64bit.h \
140         src/ext/ed25519/donna/regression.h \
141         src/ext/ed25519/donna/test-ticks.h \
142         src/ext/ed25519/donna/test-internals.c
144 noinst_HEADERS += $(ED25519_DONNA_HDRS)
146 LIBED25519_DONNA=src/ext/ed25519/donna/libed25519_donna.a
147 noinst_LIBRARIES += $(LIBED25519_DONNA)
149 src_ext_equix_libhashx_a_CPPFLAGS = \
150         -I$(srcdir)/src/ext/equix/hashx/include/ \
151         -I$(srcdir)/src/ext/equix/hashx/src/ \
152         -DHASHX_SIZE=@HASHX_SIZE@ \
153         -DEQUIX_STATIC=1 -DHASHX_STATIC=1
155 src_ext_equix_libhashx_a_SOURCES = \
156         src/ext/equix/hashx/src/blake2.c \
157         src/ext/equix/hashx/src/compiler.c \
158         src/ext/equix/hashx/src/compiler_a64.c \
159         src/ext/equix/hashx/src/compiler_x86.c \
160         src/ext/equix/hashx/src/context.c \
161         src/ext/equix/hashx/src/hashx.c \
162         src/ext/equix/hashx/src/program.c \
163         src/ext/equix/hashx/src/program_exec.c \
164         src/ext/equix/hashx/src/siphash.c \
165         src/ext/equix/hashx/src/siphash_rng.c \
166         src/ext/equix/hashx/src/virtual_memory.c
168 src_ext_equix_libequix_a_CPPFLAGS = \
169         -I$(srcdir)/src/ext/equix/include/ \
170         -I$(srcdir)/src/ext/equix/src/ \
171         $(src_ext_equix_libhashx_a_CPPFLAGS)
173 src_ext_equix_libequix_a_SOURCES = \
174         src/ext/equix/src/context.c \
175         src/ext/equix/src/equix.c \
176         src/ext/equix/src/solver.c
178 EQUIX_HDRS = \
179         src/ext/equix/hashx/include/hashx.h \
180         src/ext/equix/hashx/src/blake2.h \
181         src/ext/equix/hashx/src/compiler.h \
182         src/ext/equix/hashx/src/context.h \
183         src/ext/equix/hashx/src/force_inline.h \
184         src/ext/equix/hashx/src/hashx_endian.h \
185         src/ext/equix/hashx/src/instruction.h \
186         src/ext/equix/hashx/src/program.h \
187         src/ext/equix/hashx/src/siphash_rng.h \
188         src/ext/equix/hashx/src/siphash.h \
189         src/ext/equix/hashx/src/unreachable.h \
190         src/ext/equix/hashx/src/virtual_memory.h \
191         src/ext/equix/include/equix.h \
192         src/ext/equix/src/context.h \
193         src/ext/equix/src/solver_heap.h \
194         src/ext/equix/src/solver.h
196 EQUIX_LIBS = \
197     src/ext/equix/libhashx.a \
198     src/ext/equix/libequix.a
200 noinst_HEADERS += $(EQUIX_HDRS)
201 noinst_LIBRARIES += $(EQUIX_LIBS)
203 if BUILD_KECCAK_TINY
204 src_ext_keccak_tiny_libkeccak_tiny_a_CFLAGS=\
205   @CFLAGS_CONSTTIME@
207 src_ext_keccak_tiny_libkeccak_tiny_a_SOURCES= \
208         src/ext/keccak-tiny/keccak-tiny-unrolled.c
210 LIBKECCAK_TINY_HDRS = \
211         src/ext/keccak-tiny/keccak-tiny.h
213 noinst_HEADERS += $(LIBKECCAK_TINY_HDRS)
215 LIBKECCAK_TINY=src/ext/keccak-tiny/libkeccak-tiny.a
216 noinst_LIBRARIES += $(LIBKECCAK_TINY)
217 endif
219 EXTRA_DIST += \
220         src/ext/timeouts/bench/bench-add.lua            \
221         src/ext/timeouts/bench/bench-aux.lua            \
222         src/ext/timeouts/bench/bench.c                  \
223         src/ext/timeouts/bench/bench-del.lua            \
224         src/ext/timeouts/bench/bench-expire.lua         \
225         src/ext/timeouts/bench/bench.h                  \
226         src/ext/timeouts/bench/bench-heap.c             \
227         src/ext/timeouts/bench/bench-llrb.c             \
228         src/ext/timeouts/bench/bench.plt                \
229         src/ext/timeouts/bench/bench-wheel.c            \
230         src/ext/timeouts/bench/Rules.mk                 \
231         src/ext/timeouts/lua/Rules.mk                   \
232         src/ext/timeouts/lua/timeout-lua.c              \
233         src/ext/timeouts/Makefile                       \
234         src/ext/timeouts/Rules.shrc                     \
235         src/ext/timeouts/test-timeout.c