From 361e6c637c48042a90ff92e696bbb88c9754aecb Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Tue, 6 Sep 2016 13:50:45 +0900 Subject: add run_go --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e4cbd8d..7d5e8b0 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,6 @@ sample_test: $(EXE_DIR)/bls_smpl.exe ################################################################## BLS_LIB=$(LIB_DIR)/libbls.a -all: $(BLS_LIB) LIB_OBJ=$(OBJ_DIR)/bls.o @@ -31,6 +30,7 @@ $(MCL_LIB): ################################################################## BLS_IF_LIB=$(LIB_DIR)/libbls_if.a +lib: $(BLS_LIB) $(BLS_IF_LIB) $(BLS_IF_LIB): $(LIB_OBJ) $(OBJ_DIR)/bls_if.o $(AR) $@ $(LIB_OBJ) $(OBJ_DIR)/bls_if.o @@ -60,8 +60,11 @@ 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 || echo "all unit tests are ok" +run_go: go/main.go $(BLS_LIB) $(BLS_IF_LIB) + cd go && go run main.go + clean: - $(RM) $(BLS_LIB) $(OBJ_DIR)/* $(EXE_DIR)/*.exe $(GEN_EXE) $(ASM_SRC) $(ASM_OBJ) $(LIB_OBJ) $(LLVM_SRC) + $(RM) $(BLS_LIB) $(OBJ_DIR)/* $(EXE_DIR)/*.exe $(GEN_EXE) $(ASM_SRC) $(ASM_OBJ) $(LIB_OBJ) $(LLVM_SRC) $(BLS_IF_LIB) ALL_SRC=$(SRC_SRC) $(TEST_SRC) $(SAMPLE_SRC) DEPEND_FILE=$(addprefix $(OBJ_DIR)/, $(ALL_SRC:.cpp=.d)) -- cgit v1.2.3