From 6f2205696c24b1aac8e6997026a41c53b619b101 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Thu, 14 Sep 2017 16:40:35 +0900 Subject: update demo --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') 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) -- cgit v1.2.3