aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-03-04 07:40:51 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-03-04 07:40:51 +0800
commitc39c13cf3e123a689a6919006c601fa70bcca07f (patch)
tree62eb387f50a84e6a61ce6e512ecd5a42cc4cac8b
parentcd71bb8054a39a795c2cbb6a79431d7dcd901a70 (diff)
downloaddexon-bls-c39c13cf3e123a689a6919006c601fa70bcca07f.tar
dexon-bls-c39c13cf3e123a689a6919006c601fa70bcca07f.tar.gz
dexon-bls-c39c13cf3e123a689a6919006c601fa70bcca07f.tar.bz2
dexon-bls-c39c13cf3e123a689a6919006c601fa70bcca07f.tar.lz
dexon-bls-c39c13cf3e123a689a6919006c601fa70bcca07f.tar.xz
dexon-bls-c39c13cf3e123a689a6919006c601fa70bcca07f.tar.zst
dexon-bls-c39c13cf3e123a689a6919006c601fa70bcca07f.zip
specify link libmcl.a directly
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index de7f0d1..6d6495f 100644
--- a/Makefile
+++ b/Makefile
@@ -45,11 +45,11 @@ $(OBJ_DIR)/%.o: %.cpp
$(EXE_DIR)/%.exe: $(OBJ_DIR)/%.o $(BLS_LIB) $(MCL_LIB)
-$(MKDIR) $(@D)
- $(PRE)$(CXX) $< -o $@ $(BLS_LIB) -lmcl -L../mcl/lib $(LDFLAGS)
+ $(PRE)$(CXX) $< -o $@ $(BLS_LIB) ../mcl/lib/libmcl.a $(LDFLAGS)
$(EXE_DIR)/bls_if_test.exe: $(OBJ_DIR)/bls_if_test.o $(BLS_LIB) $(MCL_LIB) $(BLS_IF_LIB)
-$(MKDIR) $(@D)
- $(PRE)$(CXX) $< -o $@ $(BLS_LIB) $(BLS_IF_LIB) -lmcl -L../mcl/lib $(LDFLAGS)
+ $(PRE)$(CXX) $< -o $@ $(BLS_LIB) $(BLS_IF_LIB) ../mcl/lib/libmcl.a $(LDFLAGS)
SAMPLE_EXE=$(addprefix $(EXE_DIR)/,$(SAMPLE_SRC:.cpp=.exe))
sample: $(SAMPLE_EXE) $(BLS_LIB)