summaryrefslogtreecommitdiff
path: root/makefiles/gmake/libs.mk
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2010-06-13 20:21:31 +0200
committerAndreas Baumann <abaumann@yahoo.com>2010-06-13 20:21:31 +0200
commitd1ed63e35e95bdc73b20cebd9123d8a2d7a43ec1 (patch)
treeef0a2c210f3bd081785235575bac2e3addb7d525 /makefiles/gmake/libs.mk
parent7704c015826d571fdd9af6f1d691410f6b6355ac (diff)
downloadwolfbones-d1ed63e35e95bdc73b20cebd9123d8a2d7a43ec1.tar.gz
wolfbones-d1ed63e35e95bdc73b20cebd9123d8a2d7a43ec1.tar.bz2
removed most of the C++ stuff
added a TEST_DYNAMIC_* variables in order to be able to build test libraries (as for testing the library loader)
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