-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathMakefile
111 lines (80 loc) · 1.94 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
CORSET ?= corset
HUB_V2 := $(wildcard hub_v2/columns/*lisp) \
$(wildcard hub_v2/constraints/heartbeat/*lisp) \
$(wildcard hub_v2/constraints/generalities/*lisp) \
$(wildcard hub_v2/lookups/*lisp) \
hub_v2/constants.lisp
ALU := alu/add/columns.lisp \
alu/add/constraints.lisp \
alu/ext/columns.lisp \
alu/ext/constraints.lisp \
alu/mod/columns.lisp \
alu/mod/constraints.lisp \
alu/mul/columns.lisp \
alu/mul/constraints.lisp \
alu/mul/helpers.lisp
# alu/add/hub_into_add.lisp \
# alu/ext/hub_into_ext.lisp \
# alu/mod/hub_into_mod.lisp \
# alu/mul/hub_into_mul.lisp
BIN := bin
CONSTANTS := constants/constants.lisp
EC_DATA := ec_data
EUC := euc
LIBRARY := library/rlp_constraints_pattern.lisp
LOG_DATA := logData
LOG_INFO := logInfo
MMU := mmu
MMIO := mmio
MXP := mxp
PUB_DATA := $(shell find pub/ -iname '*.lisp')
RIPSHA := ripsha
RLP_ADDR := rlpAddr
RLP_TXN := rlp_txn
RLP_TXRCPT := rlp_txrcpt
ROM := rom
ROM_LEX := romLex
SHIFT := shf
STACK := hub/columns.lisp \
hub/constraints.lisp
STP := stp/columns.lisp stp/constraints.lisp \
stp/lookups/stp_into_mod.lisp stp/lookups/stp_into_wcp.lisp
TABLES := reference_tables/binRT.lisp \
reference_tables/shfRT.lisp \
reference_tables/instruction_decoder.lisp
TRM := trm/columns.lisp trm/constraints.lisp
TXN_DATA := txn_data
WCP := wcp
BLAKE2f_MODEXP_DATA := blake2f_modexp_data/
EXP := exp
ZKEVM_MODULES := ${ALU} \
${BIN} \
${BLAKE2f_MODEXP_DATA} \
${CONSTANTS} \
${EC_DATA} \
${EUC} \
${EXP} \
${LIBRARY} \
${LOG_DATA} \
${LOG_INFO} \
${MMU} \
${MMIO} \
${MXP} \
${PUB_DATA} \
${RIPSHA} \
${RLP_ADDR} \
${RLP_TXN} \
${RLP_TXRCPT} \
${ROM} \
${ROM_LEX} \
${SHIFT} \
${STACK} \
${STP} \
${TABLES} \
${TRM} \
${TXN_DATA} \
${WCP}
define.go: ${ZKEVM_MODULES}
${CORSET} wizard-iop -vv -P define -o $@ ${ZKEVM_MODULES}
zkevm.bin: ${ZKEVM_MODULES}
${CORSET} compile -vv -o $@ ${ZKEVM_MODULES}