Date: Monday, May 7, 2007 @ 13:16:29
  Author: marc
    Path: /cvsroot/carob/lms-kit-builder

Modified: GNUmakefile (1.15 -> 1.16) README (1.1 -> 1.2) build.properties
          (1.2 -> 1.3) lmsbuild.sh (1.6 -> 1.7)

Implemented debug mode parameter


------------------+
 GNUmakefile      |    7 +++++--
 README           |    2 +-
 build.properties |    2 ++
 lmsbuild.sh      |   11 ++++++-----
 4 files changed, 14 insertions(+), 8 deletions(-)


Index: lms-kit-builder/GNUmakefile
diff -u lms-kit-builder/GNUmakefile:1.15 lms-kit-builder/GNUmakefile:1.16
--- lms-kit-builder/GNUmakefile:1.15    Thu Apr 12 16:09:43 2007
+++ lms-kit-builder/GNUmakefile Mon May  7 13:16:29 2007
@@ -23,6 +23,9 @@
 
 -include build.properties
 
+LMSOPTS := ${CUSTOM}
+override CUSTOM += libmysequoia
+
 LN_S = ln -s
 TAR = tar
 TOUCH = touch
@@ -41,8 +44,8 @@
 KITFILES = ${KITSRC} ${CAROBTAR} ${LMSTAR} build.properties
 
 build: ${CAROBDIR} ${LMSDIR}
-       ${MAKE} -C ${CAROBDIR} CUSTOM=libmysequoia # comment out CUSTOM here to 
let carob subdir decide
-       ./lmsbuild.sh
+       ${MAKE} -C ${CAROBDIR} CUSTOM="${CUSTOM}"
+       ./lmsbuild.sh ${LMSOPTS}
        @printf "\n\nBuild complete. Standalone libmysequoia .X.Y.Z Shared 
Object can be found in ${LMSDIR}/src/.libs\n"
        @printf "Alternatively:  cd ${LMSDIR}; ${MAKE} install 
prefix=/whatever\n\n\n"
 
Index: lms-kit-builder/README
diff -u lms-kit-builder/README:1.1 lms-kit-builder/README:1.2
--- lms-kit-builder/README:1.1  Fri Apr  6 09:52:48 2007
+++ lms-kit-builder/README      Mon May  7 13:16:29 2007
@@ -5,4 +5,4 @@
 
 Just run "make" or "gmake" (You need GNU make).
 
-
+Check build.properties for debug mode.
Index: lms-kit-builder/build.properties
diff -u lms-kit-builder/build.properties:1.2 
lms-kit-builder/build.properties:1.3
--- lms-kit-builder/build.properties:1.2        Thu Apr 12 16:44:44 2007
+++ lms-kit-builder/build.properties    Mon May  7 13:16:29 2007
@@ -4,3 +4,5 @@
 libmysequoia_version=0.9.8u2
 carob_version=r0_7_3u2
 
+# uncomment to compile with debug flags (or use the command line)
+# CUSTOM=gcc-debug
Index: lms-kit-builder/lmsbuild.sh
diff -u lms-kit-builder/lmsbuild.sh:1.6 lms-kit-builder/lmsbuild.sh:1.7
--- lms-kit-builder/lmsbuild.sh:1.6     Wed May  2 16:56:30 2007
+++ lms-kit-builder/lmsbuild.sh Mon May  7 13:16:29 2007
@@ -40,15 +40,16 @@
 OSLDFLAGS="-L/usr/local/lib -L/usr/local/lib/mysql"
 
 
-# Un-comment to pass to configure
-# CXXFLAGS="-g3 -Wall"
-# export CXXFLAGS
-
 
 if test -e ./config.status
 then ./config.status # rerun it just because it's fast and can't harm
 else
-./configure CAROBDIR=${CAROBPATH} CONFIG_SITE=main.config.site # 
--enable-cppunit
+if test "x$1" = xgcc-debug
+  then
+    ./configure CAROBDIR=${CAROBPATH} CONFIG_SITE=main.config.site 
CXXFLAGS="-g3 -Wall" --enable-cppunit
+  else
+    ./configure CAROBDIR=${CAROBPATH} CONFIG_SITE=main.config.site
+  fi
 fi
 
 # check that we won't link to libcarob.so

_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to