forked from getamis/istanbul-tools
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile
28 lines (24 loc) · 781 Bytes
/
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
CURDIR = $(shell pwd)
#GOPATH= $(dir $(abspath $(dir $(abspath $(dir ${CURDIR})))))
GOBIN = $(CURDIR)/build/bin
GO ?= latest
VERSION ?= undefined
OS ?= $(shell go env GOOS)
ARCH ?= $(shell go env GOARCH)
LDFLAGS = -s -w -X main.Version=$(VERSION)
ifeq (linux,$(OS))
LDFLAGS+= -linkmode external -extldflags "-static"
endif
istanbul:
@GOPATH=$(GOPATH) go build -v -o ./build/bin/istanbul ./cmd/istanbul
@echo "Done building."
@echo "Run \"$(GOBIN)/istanbul\" to launch istanbul."
qbft:
@GOPATH=$(GOPATH) go build -v -o ./build/bin/qbft ./cmd/qbft
@echo "Done building."
@echo "Run \"$(GOBIN)/qbft\" to launch qbft."
load-testing:
@echo "Run load testing"
@CURDIR=$(CURDIR) go test -v github.com/Consensys/istanbul-tools/tests/load/... --timeout 1h
clean:
rm -rf build