root/gs3-extensions/mars-src/trunk/devel/CASCAKE-MAKE/CMAKE.sh @ 34382

Revision 34382, 1.3 KB (checked in by davidb, 7 weeks ago)

Better location for these development/compile tools

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3package=cmake
4version=-3.16.5
5
6progname=$0
7
8source ../cascade-make/lib/cascade-lib.bash GEXT_MARS ../.. $*
9
10prefix=$GEXT_MARS_INSTALLED
11
12#export CFLAGS="$CFLAGS -I$GEXT_MARS_INSTALLED/include"
13#export CPPFLAGS="$CPPFLAGS -I$GEXT_MARS_INSTALLED/include"
14#export CXXFLAGS="$CXXFLAGS -I$GEXT_MARS_INSTALLED/include"
15#export LDFLAGS="$LDFLAGS -L$GEXT_MARS_INSTALLED/lib"
16#export LD_LIBRARY_PATH="$GEXT_MARS_INSTALLED/lib"
17
18opt_run_untar $force_untar $auto_untar $package $version
19
20#opt_run_configure $force_config $auto_config $package $version $prefix
21if [ $force_config = "1" ] ; then
22    echo "[pushd $package$version]"
23    ( cd $package$version ; \
24      echo $CROSSCONFIGURE_VARS ./bootstrap --prefix="$prefix" $CROSSCONFIGURE_ARGS $@ ; \
25      eval $CROSSCONFIGURE_VARS ./bootstrap --prefix="$prefix" $CROSSCONFIGURE_ARGS $@ )
26    if [ $? != 0 ] ; then
27        echo "      Error encountered running *configure* stage of $progname"
28        exit 1
29    fi
30    echo "[popd]"
31  else
32    if [ $auto_config = "1" ] ; then
33      echo "Found top-level for ${progname%.*} => no need to run ./configure"
34    fi
35fi
36
37
38opt_run_make $compile $package $version
39opt_run_make $install $package $version "install"
40opt_run_make $clean $package $version "clean"
41opt_run_make $distclean $package $version "distclean"
42
43opt_run_tarclean $tarclean $package $version
Note: See TracBrowser for help on using the browser.