aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-06-05 20:58:19 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-06-05 20:58:19 +0800
commit2707ef159e0d988b8e4c0d9ed644a9e47deae3f4 (patch)
tree7398b3a533cefacfc4056d2ee15309cd72a45579 /Makefile
parentacf1c832c65429be7f07d8bae5ce91978f78e75f (diff)
downloaddexon-bls-2707ef159e0d988b8e4c0d9ed644a9e47deae3f4.tar
dexon-bls-2707ef159e0d988b8e4c0d9ed644a9e47deae3f4.tar.gz
dexon-bls-2707ef159e0d988b8e4c0d9ed644a9e47deae3f4.tar.bz2
dexon-bls-2707ef159e0d988b8e4c0d9ed644a9e47deae3f4.tar.lz
dexon-bls-2707ef159e0d988b8e4c0d9ed644a9e47deae3f4.tar.xz
dexon-bls-2707ef159e0d988b8e4c0d9ed644a9e47deae3f4.tar.zst
dexon-bls-2707ef159e0d988b8e4c0d9ed644a9e47deae3f4.zip
use struts of bn.h
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 837c335..74e5593 100644
--- a/Makefile
+++ b/Makefile
@@ -11,11 +11,11 @@ SAMPLE_SRC=bls_smpl.cpp bls_tool.cpp
CFLAGS+=-I../mcl/include
UNIT?=6
ifeq ($(UNIT),4)
- CFLAGS+=-DMBN_FP_UNIT_SIZE=4
+ CFLAGS+=-D"MCLBN_FP_UNIT_SIZE=4"
GO_TAG=bn256
endif
ifeq ($(UNIT),6)
- CFLAGS+=-DMBN_FP_UNIT_SIZE=6
+ CFLAGS+=-D"MCLBN_FP_UNIT_SIZE=6"
GO_TAG=bn384
endif
@@ -72,7 +72,7 @@ test: $(TEST_EXE)
@sh -ec 'for i in $(TEST_EXE); do $$i|grep "ctest:name"; done' > result.txt
@grep -v "ng=0, exception=0" result.txt; if [ $$? -eq 1 ]; then echo "all unit tests succeed"; else exit 1; fi
-run_go: go/bls/bls.go go/bls/bls_test.go $(BLS384_SLIB)
+test_go: go/bls/bls.go go/bls/bls_test.go $(BLS384_SLIB)
cd go/bls && env CGO_CFLAGS="-I../../include -I../../../mcl/include" CGO_LDFLAGS="-L../../lib -L../../../mcl/lib" LD_LIBRARY_PAHT=../../lib go test .
# cd go/bls && go test -tags $(GO_TAG) -v .