Build static library

This commit is contained in:
Emmanuel BENOîT 2017-11-01 23:32:06 +01:00
parent 4ab3dc1b29
commit 9e75356509

View file

@ -105,6 +105,9 @@ $(LIB_DYNAMIC): $(LIB_OBJS)
-o $(LIB_DYNAMIC) \ -o $(LIB_DYNAMIC) \
$(LIB_OBJS) $(LIBS_LIB) $(LIB_OBJS) $(LIBS_LIB)
$(LIB_STATIC): $(LIB_OBJS)
ar crD $(LIB_STATIC) $(LIB_OBJS)
# Tests # Tests
$(TEST_SUITES): $(OUTDIR)/test-%: $(OUTDIR)/tests/%.o $(TEST_MAIN) $(TEST_NEEDS) $(TEST_SUITES): $(OUTDIR)/test-%: $(OUTDIR)/tests/%.o $(TEST_MAIN) $(TEST_NEEDS)
$(CXX) $(LDFLAGS) -o $@ $< $(TEST_MAIN) $(LIBS_TESTS) $(CXX) $(LDFLAGS) -o $@ $< $(TEST_MAIN) $(LIBS_TESTS)