aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-09-14 15:40:35 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-09-14 15:40:35 +0800
commit6f2205696c24b1aac8e6997026a41c53b619b101 (patch)
treef752336f55e86729a5b053bceeecd9ffd4883cd3 /Makefile
parent709ef80e8947d8ceb7ccf0e74acf43ee8d3d2f2d (diff)
downloaddexon-bls-6f2205696c24b1aac8e6997026a41c53b619b101.tar
dexon-bls-6f2205696c24b1aac8e6997026a41c53b619b101.tar.gz
dexon-bls-6f2205696c24b1aac8e6997026a41c53b619b101.tar.bz2
dexon-bls-6f2205696c24b1aac8e6997026a41c53b619b101.tar.lz
dexon-bls-6f2205696c24b1aac8e6997026a41c53b619b101.tar.xz
dexon-bls-6f2205696c24b1aac8e6997026a41c53b619b101.tar.zst
dexon-bls-6f2205696c24b1aac8e6997026a41c53b619b101.zip
update demo
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d256e7b..b9da955 100644
--- a/Makefile
+++ b/Makefile
@@ -96,7 +96,10 @@ $(EXPORTED_JS): ./include/bls/bls.h ../mcl/include/mcl/bn.h
EXPORTED_BLS=$(shell cat $(EXPORTED_TXT))
docs/demo/bls_c.js: src/bls_c.cpp ../mcl/src/fp.cpp $(EXPORTED_TXT) $(EXPORTED_JS)
- emcc -o $@ src/bls_c.cpp ../mcl/src/fp.cpp -I./ -I./include -I../cybozulib/include -I../mcl/include -s WASM=1 -s "MODULARIZE=1" -s "EXPORTED_FUNCTIONS=[$(EXPORTED_BLS)]" -O3 -DNDEBUG -DMCLBN_FP_UNIT_SIZE=6 -DMCL_MAX_BIT_SIZE=384 -DDISABLE_EXCEPTION_CATCHING=2
+ emcc -o $@ src/bls_c.cpp ../mcl/src/fp.cpp -I./ -I./include -I../cybozulib/include -I../mcl/include -s WASM=1 -s "MODULARIZE=1" -s "EXPORTED_FUNCTIONS=[$(EXPORTED_BLS)]" -O3 -DNDEBUG -DMCLBN_FP_UNIT_SIZE=6 -DMCL_MAX_BIT_SIZE=384 -s DISABLE_EXCEPTION_CATCHING=0 -s NO_EXIT_RUNTIME=1
+
+demo:
+ $(MAKE) docs/demo/bls_c.js
clean:
$(RM) $(BLS_LIB) $(OBJ_DIR)/*.d $(OBJ_DIR)/*.o $(EXE_DIR)/*.exe $(GEN_EXE) $(ASM_SRC) $(ASM_OBJ) $(LIB_OBJ) $(LLVM_SRC) $(BLS384_SLIB) docs/demo/bls.js $(EXPORTED_JS) $(EXPORTED_TXT)