Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
65 lines (51 loc) · 2.09 KB
/
Copy pathMakefile
File metadata and controls
65 lines (51 loc) · 2.09 KB
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
.PHONY: build geas checksums test clean
GEAS_VERSION ?= 0.3.3
GEAS ?= bin/geas-$(GEAS_VERSION)
build: $(GEAS)
mkdir -p bytecode
# 2935
mkdir -p bytecode/execution_hash
$(GEAS) -a -no-nl -o bytecode/execution_hash/main.hex src/execution_hash/main.eas
$(GEAS) -a -no-nl -o bytecode/execution_hash/ctor.hex src/execution_hash/ctor.eas
# 4788
mkdir -p bytecode/beacon_root
$(GEAS) -a -no-nl -o bytecode/beacon_root/main.hex src/beacon_root/main.eas
$(GEAS) -a -no-nl -o bytecode/beacon_root/ctor.hex src/beacon_root/ctor.eas
# 7002
mkdir -p bytecode/withdrawals
$(GEAS) -a -no-nl -o bytecode/withdrawals/main.hex src/withdrawals/main.eas
$(GEAS) -a -no-nl -o bytecode/withdrawals/ctor.hex src/withdrawals/ctor.eas
# 7251
mkdir -p bytecode/consolidations
$(GEAS) -a -no-nl -o bytecode/consolidations/main.hex src/consolidations/main.eas
$(GEAS) -a -no-nl -o bytecode/consolidations/ctor.hex src/consolidations/ctor.eas
# 8282
mkdir -p bytecode/builder_deposits
$(GEAS) -a -no-nl -o bytecode/builder_deposits/main.hex src/builder_deposits/main.eas
$(GEAS) -a -no-nl -o bytecode/builder_deposits/ctor.hex src/builder_deposits/ctor.eas
mkdir -p bytecode/builder_exits
$(GEAS) -a -no-nl -o bytecode/builder_exits/main.hex src/builder_exits/main.eas
$(GEAS) -a -no-nl -o bytecode/builder_exits/ctor.hex src/builder_exits/ctor.eas
# 7997
mkdir -p bytecode/factory
$(GEAS) -a -no-nl -o bytecode/factory/main.hex src/factory/main.eas
# 8272
mkdir -p bytecode/recent_root
$(GEAS) -a -no-nl -o bytecode/recent_root/main.hex src/recent_root/main.eas
$(GEAS) -a -no-nl -o bytecode/recent_root/ctor.hex src/recent_root/ctor.eas
# test helper
mkdir -p bytecode/fake_expo_test
$(GEAS) -a -no-nl -o bytecode/fake_expo_test/main.hex src/common/fake_expo_test.eas
checksums: build
shasum -a 256 -c checksums.txt
test: build checksums
forge test -vvv
clean:
rm -f "bin/geas-$(GEAS_VERSION)"
rm -fr bytecode
ifeq ($(GEAS),bin/geas-$(GEAS_VERSION))
$(GEAS):
mkdir -p bin
env "GOBIN=$(CURDIR)/bin" go install github.com/fjl/geas/cmd/geas@v$(GEAS_VERSION)
mv bin/geas "bin/geas-$(GEAS_VERSION)"
endif