Revision: 1385
http://svn.sourceforge.net/complement/?rev=1385&view=rev
Author: complement
Date: 2006-11-02 08:42:33 -0800 (Thu, 02 Nov 2006)
Log Message:
-----------
experiments with make rules
Modified Paths:
--------------
trunk/complement/explore/inquiry/makes/static-lib/Makefile
trunk/complement/explore/inquiry/makes/static-lib/Makefile.inc
Added Paths:
-----------
trunk/complement/explore/inquiry/makes/static-lib/testx2.cpp
Modified: trunk/complement/explore/inquiry/makes/static-lib/Makefile
===================================================================
--- trunk/complement/explore/inquiry/makes/static-lib/Makefile 2006-11-02 16:40:47 UTC (rev 1384)
+++ trunk/complement/explore/inquiry/makes/static-lib/Makefile 2006-11-02 16:42:33 UTC (rev 1385)
@@ -1,42 +1,16 @@
# -*- Makefile -*- Time-stamp: <03/03/21 12:01:22 ptr>
-# $Id$
-BASEDIR := $(shell xtmp=`pwd`; xtmp=`dirname $$xtmp`; xtmp=`dirname $$xtmp`; dirname $$xtmp)
-LIBDIR := $(shell xtmp=`pwd`; dirname $$xtmp)
+SRCROOT := ../../..
+COMPILER_NAME := gcc
-COMPILER_NAME = gcc
-include $(BASEDIR)/inquiry/makes/static-lib/Makefile.inc
+include Makefile.inc
+include ${SRCROOT}/Makefiles/top.mak
-echo:
- echo ${BASEDIR}
+# $(foreach ${LIBNAMES})
-all: all-release all-debug
+define P_TEMPLATE
+$(1): $$($(1)_SRC_CPP)
+ echo "$$+ $$@ "
+endef
-install: install-dbg-shared install-stldbg-shared install-release-shared
-
-all-shared: release-shared dbg-shared stldbg-shared
-
-all-debug: dbg-shared stldbg-shared
-
-all-release: release-shared
-
-include ${BASEDIR}/Makefiles/lib/Makefile.inc
-
-INCLUDES += -I$(STLPORT_INCLUDE_DIR)
-
-ifeq ($(OS_VER),Linux)
-release-shared: LDSEARCH = -L${STLPORT_LIB_DIR} -L${INSTALL_LIB_DIR}
-stldbg-shared: LDSEARCH = -L${STLPORT_LIB_DIR}
-dbg-shared: LDSEARCH = -L${STLPORT_LIB_DIR}
-endif
-
-ifeq ($(OS_VER),SunOS)
-release-shared : LDLIBS = -lstlport_gcc -lrt
-stldbg-shared : LDLIBS = -lstlport_gcc_stldebug -lrt
-dbg-shared : LDLIBS = -lstlport_gcc -lrt
-else
-release-shared : LDLIBS = -lstlport_gcc
-stldbg-shared : LDLIBS = -lstlport_gcc_stldebug
-dbg-shared : LDLIBS = -lstlport_gcc
-endif
-
+$(foreach name,${LIBNAMES},$(eval $(call P_TEMPLATE,$(name))))
Modified: trunk/complement/explore/inquiry/makes/static-lib/Makefile.inc
===================================================================
--- trunk/complement/explore/inquiry/makes/static-lib/Makefile.inc 2006-11-02 16:40:47 UTC (rev 1384)
+++ trunk/complement/explore/inquiry/makes/static-lib/Makefile.inc 2006-11-02 16:42:33 UTC (rev 1385)
@@ -1,8 +1,11 @@
# -*- Makefile -*- Time-stamp: <03/03/21 11:58:08 ptr>
-# $Id$
LIBNAME = testx1
+LIBNAMES = testx1x testx2
MAJOR = .0
MINOR = .1
PATCH = .0
SRC_CPP = testx1.cpp
+
+testx1x_SRC_CPP = testx1.cpp
+testx2_SRC_CPP = testx2.cpp
Added: trunk/complement/explore/inquiry/makes/static-lib/testx2.cpp
===================================================================
--- trunk/complement/explore/inquiry/makes/static-lib/testx2.cpp (rev 0)
+++ trunk/complement/explore/inquiry/makes/static-lib/testx2.cpp 2006-11-02 16:42:33 UTC (rev 1385)
@@ -0,0 +1,6 @@
+// Time-stamp: <03/03/20 19:05:23 ptr>
+
+int g()
+{
+ return 0;
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|