diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2018-12-05 10:59:06 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2018-12-05 10:59:06 +0800 |
commit | f63e122a2cff8d0e20288b897c449a42cdf84897 (patch) | |
tree | bed5a15333c3d04fbf23f583a56bbc64c8c9d271 /Makefile | |
parent | afbcbeaaf3b5f9962af382d668ae5bcad337f661 (diff) | |
download | dexon-bls-f63e122a2cff8d0e20288b897c449a42cdf84897.tar dexon-bls-f63e122a2cff8d0e20288b897c449a42cdf84897.tar.gz dexon-bls-f63e122a2cff8d0e20288b897c449a42cdf84897.tar.bz2 dexon-bls-f63e122a2cff8d0e20288b897c449a42cdf84897.tar.lz dexon-bls-f63e122a2cff8d0e20288b897c449a42cdf84897.tar.xz dexon-bls-f63e122a2cff8d0e20288b897c449a42cdf84897.tar.zst dexon-bls-f63e122a2cff8d0e20288b897c449a42cdf84897.zip |
-tags options is necessary fo cgo
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -106,8 +106,17 @@ 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 -test_go: 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) + cd ffi/go/bls && env PATH=$$PATH:../../../lib LD_RUN_PATH="../../../lib" DYLD_LIBRARY_PATH="../../../lib" go test $(MAC_GO_LDFLAGS) -tags bn384 . +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_go256 + $(MAKE) test_go384 + $(MAKE) test_go384_256 EMCC_OPT=-I./include -I./src -I../mcl/include -I./ -Wall -Wextra EMCC_OPT+=-O3 -DNDEBUG |