-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
201 lines (157 loc) · 5.14 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
CORSET ?= corset
HUB_COLUMNS := $(wildcard hub/columns/*lisp)
HUB := $(wildcard hub/columns/*lisp) \
$(wildcard hub/constraints/account-rows/*lisp) \
$(wildcard hub/constraints/context-rows/*lisp) \
$(wildcard hub/constraints/generalities/*lisp) \
$(wildcard hub/constraints/heartbeat/*lisp) \
$(wildcard hub/constraints/instruction-handling/call/*lisp) \
$(wildcard hub/constraints/instruction-handling/call/generalities/*lisp) \
$(wildcard hub/constraints/instruction-handling/call/finishing_touches/*lisp) \
$(wildcard hub/constraints/instruction-handling/call/specialized/*lisp) \
$(wildcard hub/constraints/instruction-handling/call/precompiles/*lisp) \
$(wildcard hub/constraints/instruction-handling/call/precompiles/common/*lisp) \
$(wildcard hub/constraints/instruction-handling/call/precompiles/ec_add_mul_pairing/*lisp) \
$(wildcard hub/constraints/instruction-handling/call/precompiles/modexp/*lisp) \
$(wildcard hub/constraints/instruction-handling/call/precompiles/blake/*lisp) \
$(wildcard hub/constraints/instruction-handling/copy/*lisp) \
$(wildcard hub/constraints/instruction-handling/create/*lisp) \
$(wildcard hub/constraints/instruction-handling/create/constraints/*lisp) \
$(wildcard hub/constraints/instruction-handling/halting/*lisp) \
$(wildcard hub/constraints/instruction-handling/*lisp) \
$(wildcard hub/constraints/miscellaneous-rows/*lisp) \
$(wildcard hub/constraints/scenario-rows/shorthands/*lisp) \
$(wildcard hub/constraints/scenario-rows/*lisp) \
$(wildcard hub/constraints/storage-rows/*lisp) \
$(wildcard hub/constraints/tx_skip/*lisp) \
$(wildcard hub/constraints/tx_prewarm/*lisp) \
$(wildcard hub/constraints/tx_init/*lisp) \
$(wildcard hub/constraints/tx_finl/*lisp) \
$(wildcard hub/constraints/*lisp) \
$(wildcard hub/lookups/*lisp) \
hub/constants.lisp
# Missing from the above
# $(wildcard hub/constraints/consistency/stack/*lisp) \
# $(wildcard hub/constraints/consistency/*lisp) \
# $(wildcard hub/constraints/consistency/account/*lisp) \
# $(wildcard hub/constraints/consistency/context/*lisp) \
# $(wildcard hub/constraints/consistency/execution_environment/*lisp) \
# $(wildcard hub/constraints/consistency/storage/*lisp) \
ALU := $(wildcard alu/add/*.lisp) \
$(wildcard alu/ext/*.lisp) \
$(wildcard alu/mod/*.lisp) \
$(wildcard alu/mul/*.lisp)
BIN := bin
BLAKE2f_MODEXP_DATA := blake2fmodexpdata
BLOCKDATA_FOR_REFERENCE_TESTS := blockdata/columns.lisp \
blockdata/constants.lisp
BLOCKDATA := blockdata
BLOCKHASH := blockhash
CONSTANTS := constants/constants.lisp
EC_DATA := ecdata
EUC := euc
EXP := exp
GAS := gas
LIBRARY := library/rlp_constraints_pattern.lisp
LOG_DATA := logdata
LOG_INFO := loginfo
MMU := $(wildcard mmu/*.lisp) \
$(wildcard mmu/lookups/*.lisp) \
$(wildcard mmu/instructions/*.lisp) \
$(wildcard mmu/instructions/any_to_ram_with_padding/*.lisp)
MMIO := $(wildcard mmio/*lisp) \
$(wildcard mmio/lookups/*lisp)
MXP := mxp
OOB := oob
RLP_ADDR := rlpaddr
RLP_TXN := rlptxn
RLP_TXRCPT := rlptxrcpt
ROM := rom
ROM_LEX := romlex
SHAKIRA_DATA := shakiradata
SHIFT := shf
STP := stp
TABLES := reftables/bin_reftable.lisp \
reftables/shf_reftable.lisp \
reftables/inst_decoder.lisp
TRM := trm
TXN_DATA := txndata
TXN_DATA_FOR_REFERENCE_TESTS := $(wildcard txndata/*.lisp) \
txndata/lookups/txndata_into_euc.lisp \
txndata/lookups/txndata_into_rlpaddr.lisp \
txndata/lookups/txndata_into_rlptxn.lisp \
txndata/lookups/txndata_into_rlptxrcpt.lisp \
txndata/lookups/txndata_into_romlex.lisp \
txndata/lookups/txndata_into_wcp.lisp
# txndata/lookups/txndata_into_blockdata.lisp \
# txndata/lookups/txndata_into_hub.lispX \
WCP := wcp
ZKEVM_MODULES := ${ALU} \
${BIN} \
${BLAKE2f_MODEXP_DATA} \
${BLOCKDATA} \
${BLOCKHASH} \
${CONSTANTS} \
${EC_DATA} \
${EUC} \
${EXP} \
${GAS} \
${HUB_COLUMNS} \
${LIBRARY} \
${LOG_DATA} \
${LOG_INFO} \
${MMIO} \
${MMU} \
${MXP} \
${OOB} \
${RLP_ADDR} \
${RLP_TXN} \
${RLP_TXRCPT} \
${ROM} \
${ROM_LEX} \
${SHAKIRA_DATA} \
${SHIFT} \
${STP} \
${TABLES} \
${TRM} \
${TXN_DATA} \
${WCP}
# ${HUB} \
define.go: ${ZKEVM_MODULES}
${CORSET} wizard-iop -vv -o $@ ${ZKEVM_MODULES}
zkevm.bin: ${ZKEVM_MODULES}
${CORSET} compile -vv -o $@ ${ZKEVM_MODULES}
ZKEVM_MODULES_FOR_REFERENCE_TESTS := ${ALU} \
${BIN} \
${BLAKE2f_MODEXP_DATA} \
${BLOCKDATA_FOR_REFERENCE_TESTS} \
${BLOCKHASH} \
${CONSTANTS} \
${EC_DATA} \
${EUC} \
${EXP} \
${GAS} \
${HUB} \
${LIBRARY} \
${LOG_DATA} \
${LOG_INFO} \
${MMIO} \
${MMU} \
${MXP} \
${OOB} \
${RLP_ADDR} \
${RLP_TXN} \
${RLP_TXRCPT} \
${ROM} \
${ROM_LEX} \
${SHAKIRA_DATA} \
${SHIFT} \
${STP} \
${TABLES} \
${TRM} \
${TXN_DATA_FOR_REFERENCE_TESTS} \
${WCP}
# ${BLOCKDATA} \
# ${HUB} \
zkevm_for_reference_tests.bin: ${ZKEVM_MODULES_FOR_REFERENCE_TESTS}
${CORSET} compile -vv -o $@ ${ZKEVM_MODULES_FOR_REFERENCE_TESTS}