Date: Thursday, April 5, 2007 @ 22:51:58
  Author: marc
    Path: /cvsroot/carob/lms-kit-builder

   Added: GNUmakefile (1.1) build.properties (1.1) lmsbuild.sh (1.1)

created lms-kit-builder for LMS-42


------------------+
 GNUmakefile      |   86 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 build.properties |    6 +++
 lmsbuild.sh      |   47 ++++++++++++++++++++++++++++
 3 files changed, 139 insertions(+)


Index: lms-kit-builder/GNUmakefile
diff -u /dev/null lms-kit-builder/GNUmakefile:1.1
--- /dev/null   Thu Apr  5 22:51:58 2007
+++ lms-kit-builder/GNUmakefile Thu Apr  5 22:51:58 2007
@@ -0,0 +1,86 @@
+#
+# Sequoia: Database clustering technology.
+# Copyright (C) 2005 Emic Networks
+# Contact: [EMAIL PROTECTED]
+# 
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# 
+# http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# Initial developer: Marc Herbert
+# Contributor(s):
+#
+
+
+
+-include build.properties
+
+LN = ln -s
+TAR = tar
+TOUCH = touch
+RM = rm -rf
+
+LMSDIR = libmysequoia-${libmysequoia_version}
+CAROBDIR = carob-${carob_version}
+TGZ = tar.gz # maybe .bz2 some day
+CAROBTAR = ${CAROBDIR}.${TGZ}
+LMSTAR = ${LMSDIR}.${TGZ}
+
+
+SRCKITDIR = libmysequoia-kit-${libmysequoia_version}
+SRCKIT = ${SRCKITDIR}.${TGZ}
+
+
+build: ${CAROBDIR} ${LMSDIR}
+       ${MAKE} -C ${CAROBDIR} CUSTOM=libmysequoia
+       ./lmsbuild.sh
+       @printf "Build complete. Standalone libmysequoia.so.X.Y.Z file can be 
found in ${LMSDIR}/src/.libs  "
+       @printf "Or run '${MAKE} install'\n"
+       @printf "\n\n"
+
+${LMSDIR} ${CAROBDIR}: %: %.${TGZ}
+       ${TAR} xzf $<
+
+install:
+       ${MAKE} -C ${LMSDIR} install
+
+kit: ${SRCKIT}
+
+${SRCKIT}: ${CAROBTAR} ${LMSTAR} GNUmakefile lmsbuild.sh build.properties
+       ${RM} ${SRCKITDIR} ${SRCKIT}
+       mkdir ${SRCKITDIR}
+       cp $^ ${SRCKITDIR}
+       ${TAR} czf $@ ${SRCKITDIR}
+       ${RM} ${SRCKITDIR}
+
+clean:
+       - ${MAKE} -C ${CAROBDIR} clean
+       - ${MAKE} -C ${LMSDIR} clean
+       ${RM} ${SRCKITDIR} ${SRCKIT}
+
+distclean:
+       - ${MAKE} -C ${CAROBDIR} distclean
+       - ${MAKE} -C ${LMSDIR} distclean
+
+
+# hack assuming ../carob and ../libmysequoia
+dev:
+       ${TOUCH} carob-.${TGZ}
+       ${TOUCH} libmysequoia-.${TGZ}
+       - ${LN} ../carob carob-
+       ${TOUCH} carob-
+       - ${LN} ../libmysequoia libmysequoia-
+       ${TOUCH} libmysequoia-
+       - mv build.properties build.properties.disabled
+
+clean-dev:
+       - ${RM} *- *-.${TGZ}
+       mv build.properties.disabled build.properties
Index: lms-kit-builder/build.properties
diff -u /dev/null lms-kit-builder/build.properties:1.1
--- /dev/null   Thu Apr  5 22:51:58 2007
+++ lms-kit-builder/build.properties    Thu Apr  5 22:51:58 2007
@@ -0,0 +1,6 @@
+
+# This is sourced both by GNUmake and shell scripts
+
+libmysequoia_version=0.9.8u1
+carob_version=2007-04-05
+
Index: lms-kit-builder/lmsbuild.sh
diff -u /dev/null lms-kit-builder/lmsbuild.sh:1.1
--- /dev/null   Thu Apr  5 22:51:58 2007
+++ lms-kit-builder/lmsbuild.sh Thu Apr  5 22:51:58 2007
@@ -0,0 +1,47 @@
+#!/bin/sh
+
+#
+# Sequoia: Database clustering technology.
+# Copyright (C) 2005 Emic Networks
+# Contact: [EMAIL PROTECTED]
+# 
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# 
+# http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# Initial developer: Marc Herbert
+# Contributor(s):
+#
+
+
+set -e
+set -x
+
+[ -e ./build.properties ] && . ./build.properties
+
+# relative paths are practically impossible with autoconf
+CAROBPATH="`pwd`/carob-${carob_version}"
+
+cd libmysequoia-${libmysequoia_version}
+
+# TODO: add OS-dependent flags. Don't run everytime (Use config.status or 
sthing?)
+./configure \
+    --sysconfdir=/etc/mysequoia \
+    CPPFLAGS="-I${CAROBPATH} ${OSCPPFLAGS}" \
+    LDFLAGS="-L${CAROBPATH} ${OSLDFLAGS}"
+
+# check that we won't link to libcarob.so
+[ -e ${CAROBPATH}/libcarob.so ] &&
+    { printf "${CAROBPATH}/libcarob.so is in the way, would prevent linking to 
libcarob.a\n"; exit 1 ; }
+
+
+# finally
+make

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

Reply via email to