summaryrefslogtreecommitdiff
path: root/makefiles/gmake/libs.mk
diff options
context:
space:
mode:
Diffstat (limited to 'makefiles/gmake/libs.mk')
-rw-r--r--makefiles/gmake/libs.mk13
1 files changed, 10 insertions, 3 deletions
diff --git a/makefiles/gmake/libs.mk b/makefiles/gmake/libs.mk
index cf0ad08..c074b76 100644
--- a/makefiles/gmake/libs.mk
+++ b/makefiles/gmake/libs.mk
@@ -3,7 +3,7 @@
# requires:
# - STATIC_LIB: name of the static library
# - DYNAMIC_LIB: soname and versions of the shared library
-# - all others like OBJS, CPP_OBJS, LIBS, SH_OBJS, SHPP_OBJS, LDFLAGS
+# - all others like OBJS, LIBS, SH_OBJS, LDFLAGS
#
# provides:
# - targets to build the static and dynamic version of the project's library
@@ -54,8 +54,15 @@ $(STATIC_LIB) :
endif
ifneq "$(DYNAMIC_LIB)" ""
-$(DYNAMIC_LIB).$(DYNAMIC_LIB_MAJOR).$(DYNAMIC_LIB_MINOR).$(DYNAMIC_LIB_PATCH) : $(SH_OBJS) $(SHPP_OBJS)
- $(CCPP_LINK) $(SO_FLAGS) -o $@ $(LDFLAGS) $(SH_OBJS) $(SHPP_OBJS) $(LIBS)
+$(DYNAMIC_LIB).$(DYNAMIC_LIB_MAJOR).$(DYNAMIC_LIB_MINOR).$(DYNAMIC_LIB_PATCH) : $(SH_OBJS)
+ $(LINK) $(SO_FLAGS) -o $@ $(LDFLAGS) $(SH_OBJS) $(LIBS)
else
$(DYNAMIC_LIB).$(DYNAMIC_LIB_MAJOR).$(DYNAMIC_LIB_MINOR).$(DYNAMIC_LIB_PATCH) :
endif
+
+ifneq "$(TEST_DYNAMIC_LIB)" ""
+$(TEST_DYNAMIC_LIB).$(TEST_DYNAMIC_LIB_MAJOR).$(TEST_DYNAMIC_LIB_MINOR).$(TEST_DYNAMIC_LIB_PATCH) : $(SH_OBJS)
+ $(LINK) $(SO_FLAGS) -o $@ $(LDFLAGS) $(SH_OBJS) $(LIBS)
+else
+$(TEST_DYNAMIC_LIB).$(TEST_DYNAMIC_LIB_MAJOR).$(TEST_DYNAMIC_LIB_MINOR).$(TEST_DYNAMIC_LIB_PATCH) :
+endif