aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-12-10 08:33:23 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-12-10 08:33:27 +0800
commit6b6432f86311d22f8595cc44f32075cdff390fcf (patch)
tree1130467401eb9a9821ab08187a13f29c654c89e4 /Makefile
parent6004f31f3bc7c70f2112e592f91f3367c98d73d6 (diff)
downloaddexon-mcl-6b6432f86311d22f8595cc44f32075cdff390fcf.tar.gz
dexon-mcl-6b6432f86311d22f8595cc44f32075cdff390fcf.tar.zst
dexon-mcl-6b6432f86311d22f8595cc44f32075cdff390fcf.zip
change size_t to mclSize of bn.h for JS
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 98ea8c5..aefbe51 100644
--- a/Makefile
+++ b/Makefile
@@ -106,7 +106,7 @@ $(MCL_SLIB): $(LIB_OBJ)
$(BN256_LIB): $(BN256_OBJ)
$(AR) $@ $(BN256_OBJ)
-$(SHE256_OBJ) : src/she_c256.cpp src/she_c_impl.hpp include/mcl/she.h
+$(SHE256_OBJ) : src/she_c256.cpp src/she_c_impl.hpp include/mcl/she.h include/mcl/bn.h
$(SHE256_LIB): $(SHE256_OBJ)
$(AR) $@ $(SHE256_OBJ)
@@ -209,7 +209,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
-EMCC_OPT=-I./include -I./src -I../cybozulib/include
+EMCC_OPT=-I./include -I./src -I../cybozulib/include -Wall -Wextra
EMCC_OPT+=-O3 -DNDEBUG -DMCLBN_FP_UNIT_SIZE=4 -DMCL_MAX_BIT_SIZE=256 -DMCLSHE_WIN_SIZE=8
EMCC_OPT+=-s WASM=1 -s DISABLE_EXCEPTION_CATCHING=0 -s NO_EXIT_RUNTIME=1 -s MODULARIZE=1
JS_DEP=src/fp.cpp src/she_c256.cpp src/she_c_impl.hpp include/mcl/she.hpp Makefile