-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
33 lines (26 loc) · 1.01 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
PROGRAM_NAME = evmone_parallel_evm
DEPS_PATH = ./deps/
EVMONE_PATH = ./deps/evmone
INCLUDES = -I$(EVMONE_PATH)/evmc/include -I$(EVMONE_PATH)/include -I$(EVMONE_PATH)/lib/evmone -I$(EVMONE_PATH)/lib -I$(DEPS_PATH)/intx/include
LIBRARIES = -L$(EVMONE_PATH)/build/evmc/lib/loader -L$(EVMONE_PATH)/build/lib
main:
python main.py
parallel:
python superparallel.py
serial:
python serial.py
setup_evmone:
# Step 1: Build the evmone repo
# cd ./deps/evmone && cmake -S . -B build -DEVMONE_TESTING=ON && cmake --build build --parallel
# Step 2: Build the evmone evm trace generation
g++ -std=c++20 -o build/$(PROGRAM_NAME) evm_tracer.cpp $(INCLUDES) $(LIBRARIES) \
-levmc-loader -levmone -Wl,-rpath,$(realpath $(EVMONE_PATH)/build/lib)
# Step 3: Sanity-Check by Testing. Status Code should be success
./build/$(PROGRAM_NAME) \
--bytecode 604260005260206000F3 \
--tracefilename trace.json \
--calldata "" \
--outputdir=execution_logs \
--fileprefix=test_
clean:
find . -name '*.py' -exec sed -i 's/[ \t]*$$//' {} +