aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-02-13 11:34:42 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-02-13 11:34:42 +0800
commit56d7a699b44561dff230eca3064ee40c7626dfdf (patch)
treebb4993916505cb5d61e25bf37cd8960d6f0f3270 /Makefile
parentb03af9e984babe8097a894e154f9dc897c537618 (diff)
downloaddexon-bls-56d7a699b44561dff230eca3064ee40c7626dfdf.tar
dexon-bls-56d7a699b44561dff230eca3064ee40c7626dfdf.tar.gz
dexon-bls-56d7a699b44561dff230eca3064ee40c7626dfdf.tar.bz2
dexon-bls-56d7a699b44561dff230eca3064ee40c7626dfdf.tar.lz
dexon-bls-56d7a699b44561dff230eca3064ee40c7626dfdf.tar.xz
dexon-bls-56d7a699b44561dff230eca3064ee40c7626dfdf.tar.zst
dexon-bls-56d7a699b44561dff230eca3064ee40c7626dfdf.zip
fix the order of linking libraries
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index bb576ff..de7f0d1 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) $(LDFLAGS) -lmcl -L../mcl/lib
+ $(PRE)$(CXX) $< -o $@ $(BLS_LIB) -lmcl -L../mcl/lib $(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) $(LDFLAGS) -lmcl -L../mcl/lib
+ $(PRE)$(CXX) $< -o $@ $(BLS_LIB) $(BLS_IF_LIB) -lmcl -L../mcl/lib $(LDFLAGS)
SAMPLE_EXE=$(addprefix $(EXE_DIR)/,$(SAMPLE_SRC:.cpp=.exe))
sample: $(SAMPLE_EXE) $(BLS_LIB)