diff options
Diffstat (limited to 'vendor/github.com/dexon-foundation/bls/Makefile')
-rw-r--r-- | vendor/github.com/dexon-foundation/bls/Makefile | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/vendor/github.com/dexon-foundation/bls/Makefile b/vendor/github.com/dexon-foundation/bls/Makefile index 8ce73a5a1..556f625ec 100644 --- a/vendor/github.com/dexon-foundation/bls/Makefile +++ b/vendor/github.com/dexon-foundation/bls/Makefile @@ -32,34 +32,10 @@ MCL_LIB=../mcl/lib/libmcl.a $(MCL_LIB): $(MAKE) -C ../mcl lib/libmcl.a -ifeq ($(DOCKER),alpine) -GMP_PREFIX=/usr/lib -OPENSSL_PREFIX=/usr/lib -else ifeq ($(OS),mac) -GMP_PREFIX=$(shell brew --prefix gmp)/lib -OPENSSL_PREFIX=$(shell brew --prefix openssl)/lib -else -GMP_PREFIX=/usr/lib/x86_64-linux-gnu -OPENSSL_PREFIX=/usr/lib/x86_64-linux-gnu -endif - -GMP_STATIC_LIB=$(GMP_PREFIX)/libgmp.a -GMPXX_STATIC_LIB=$(GMP_PREFIX)/libgmpxx.a - -OPENSSL_STATIC_LIB=$(OPENSSL_PREFIX)/libcrypto.a - $(BLS256_LIB): $(OBJ_DIR)/bls_c256.o $(AR) $@ $< $(BLS384_LIB): $(OBJ_DIR)/bls_c384.o $(MCL_LIB) - rm -rf tmp - mkdir -p tmp - cd tmp && \ - ar x ../$(MCL_LIB) && \ - ar x $(OPENSSL_STATIC_LIB) && \ - ar x $(GMP_STATIC_LIB) && \ - ar x $(GMPXX_STATIC_LIB) - $(AR) $@ $< tmp/*.o - rm -rf tmp + $(AR) $@ $< ifneq ($(findstring $(OS),mac/mingw64),) BLS256_SLIB_LDFLAGS+=-lgmpxx -lgmp -lcrypto -lstdc++ |