Skip to content

Commit 8b4cdeb

Browse files
V-Staykovrevitteth
andauthored
build libs (#23)
* makefile * remove mistakes * feat(libs): document makefile convenience command --------- Co-authored-by: Max Revitt <[email protected]>
1 parent 1114f79 commit 8b4cdeb

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Makefile

+7
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ dbg:
9898
@cd ./cmd/$* && $(GOBUILD) -o $(GOBIN)/$*
9999
@echo "Run \"$(GOBIN)/$*\" to launch $*."
100100

101+
build-libs:
102+
ifeq ($(UNAME), Darwin )
103+
@brew install libomp gmp
104+
else ifeq ($(UNAME), Linux )
105+
@sudo apt install libgtest-dev libomp-dev libgmp-dev
106+
endif
107+
101108
## erigon: build erigon
102109
cdk-erigon: go-version cdk-erigon.cmd
103110
@rm -f $(GOBIN)/tg # Remove old binary to prevent confusion where users still use it because of the scripts

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Please install:
1111
- Linux: `libgtest-dev` `libomp-dev` `libgmp-dev`
1212
- MacOS: `brew install libomp` `brew install gmp`
1313

14+
Using the Makefile command: `make build-libs` will install these for the relevant architecture.
15+
1416
## zkevm-specific API Support
1517

1618
In order to enable the zkevm_ namespace, please add 'zkevm' to the http.api flag (see the example config below).

0 commit comments

Comments
 (0)