aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2018-12-06 10:49:06 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2018-12-06 10:49:06 +0800
commite17ebfd57bcc6b97d7012811527fbad93952f655 (patch)
tree4e7aa62c6cae55d2a8f5fdcd8a46bd95a3c78602 /Makefile
parentf63e122a2cff8d0e20288b897c449a42cdf84897 (diff)
downloaddexon-bls-e17ebfd57bcc6b97d7012811527fbad93952f655.tar
dexon-bls-e17ebfd57bcc6b97d7012811527fbad93952f655.tar.gz
dexon-bls-e17ebfd57bcc6b97d7012811527fbad93952f655.tar.bz2
dexon-bls-e17ebfd57bcc6b97d7012811527fbad93952f655.tar.lz
dexon-bls-e17ebfd57bcc6b97d7012811527fbad93952f655.tar.xz
dexon-bls-e17ebfd57bcc6b97d7012811527fbad93952f655.tar.zst
dexon-bls-e17ebfd57bcc6b97d7012811527fbad93952f655.zip
[Go] use bls384 unless tags is specified
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4847885..9c2b208 100644
--- a/Makefile
+++ b/Makefile
@@ -106,6 +106,9 @@ ifeq ($(OS),mac)
MAC_GO_LDFLAGS="-ldflags=-s"
endif
# PATH is for mingw, LD_RUN_PATH is for linux, DYLD_LIBRARY_PATH is for mac
+# use bls384 unless tags is specified
+test_go_default: ffi/go/bls/bls.go ffi/go/bls/bls_test.go $(BLS384_SLIB)
+ cd ffi/go/bls && env PATH=$$PATH:../../../lib LD_RUN_PATH="../../../lib" DYLD_LIBRARY_PATH="../../../lib" go test $(MAC_GO_LDFLAGS) .
test_go256: ffi/go/bls/bls.go ffi/go/bls/bls_test.go $(BLS256_SLIB)
cd ffi/go/bls && env PATH=$$PATH:../../../lib LD_RUN_PATH="../../../lib" DYLD_LIBRARY_PATH="../../../lib" go test $(MAC_GO_LDFLAGS) -tags bn256 .
test_go384: ffi/go/bls/bls.go ffi/go/bls/bls_test.go $(BLS384_SLIB)
@@ -114,6 +117,7 @@ test_go384_256: ffi/go/bls/bls.go ffi/go/bls/bls_test.go $(BLS384_256_SLIB)
cd ffi/go/bls && env PATH=$$PATH:../../../lib LD_RUN_PATH="../../../lib" DYLD_LIBRARY_PATH="../../../lib" go test $(MAC_GO_LDFLAGS) -tags bn384_256 .
test_go:
+ $(MAKE) test_go_default
$(MAKE) test_go256
$(MAKE) test_go384
$(MAKE) test_go384_256