Merge pull request #1060 from Blockdaemon/pr-build-with-makefile-1
Simplify build process with Makefilepull/1559/head
commit
d0a3026f7a
@ -0,0 +1,19 @@ |
||||
TOP:=$(realpath ..)
|
||||
export CGO_CFLAGS:=-I$(TOP)/bls/include -I$(TOP)/mcl/include -I/usr/local/opt/openssl/include
|
||||
export CGO_LDFLAGS:=-L$(TOP)/bls/lib -L/usr/local/opt/openssl/lib
|
||||
export LD_LIBRARY_PATH:=$(TOP)/bls/lib:$(TOP)/mcl/lib:/usr/local/opt/openssl/lib
|
||||
export LIBRARY_PATH:=$(LD_LIBRARY_PATH)
|
||||
export DYLD_FALLBACK_LIBRARY_PATH:=$(LD_LIBRARY_PATH)
|
||||
export GO111MODULE:=on
|
||||
|
||||
.PHONY: all libs exe |
||||
|
||||
all: libs |
||||
./scripts/go_executable_build.sh
|
||||
|
||||
libs: |
||||
make -C $(TOP)/mcl -j4
|
||||
make -C $(TOP)/bls BLS_SWAP_G=1 -j4
|
||||
|
||||
exe: |
||||
./scripts/go_executable_build.sh
|
Loading…
Reference in new issue