Index: mttroot/mtt/bin/mttrc ================================================================== --- mttroot/mtt/bin/mttrc +++ mttroot/mtt/bin/mttrc @@ -13,10 +13,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.19 2001/03/30 15:13:49 gawthrop +## Rationalised simulation modes to each return mtt_data +## ## Revision 1.18 2001/03/19 02:28:52 geraint ## Branch merge: merging-ode2odes-exe back to MAIN. ## ## Revision 1.17.2.4 2001/03/06 03:48:43 geraint ## Print additional environment variable for "mtt -p". @@ -82,11 +85,12 @@ # Put under RCS at last # Added CC variable # ############################################################### -MTT_BASE=$1 +## When using csh, replace $1 by the mtt base path, eg /usr/share/mtt/latest +export MTT_BASE=$1 if [ -z "$MTT_BASE" ]; then echo mttrc requires one argument: eg mttrc /usr/share/mtt/latest else echo Setting paths with base $MTT_BASE @@ -157,43 +161,43 @@ # ode2odes.exe stuff # local system - PLAT="i686-pc-linux-gnu" + export PLAT="i686-pc-linux-gnu" # PREFIX="/usr/local" - PREFIX="/usr" - GCCVERS="2.95.2" - SRCOCTAVE="/cvs/octave" + export PREFIX="/usr" + export GCCVERS="2.95.2" + export SRCOCTAVE="/cvs/octave" # PLAT="mips-sgi-irix6.5" # PREFIX="/usr/people/bevangp/GNU" # GCCVERS="2.95.2" # SRCOCTAVE="${PREFIX}/../build/octave-2.1.33" # include paths - IOCTAVE="-I${PREFIX}/include/octave" + export IOCTAVE="-I${PREFIX}/include/octave" # library paths # LOCTAVE="-L${PREFIX}/lib/octave -loctave -lcruft -loctinterp" - LOCTAVE="-L${PREFIX}/lib/octave -loctave -lcruft -loctinterp" - LKPATHSEA="-L${SRCOCTAVE}/kpathsea -lkpathsea" - LREADLINE=" -L${SRCOCTAVE}/readline -lreadline" - LSYSTEM="-ldl -lm -lncurses" - LF2C="-L${PREFIX}/lib/gcc-lib/${PLAT}/${GCCVERS} -lg2c" + export LOCTAVE="-L${PREFIX}/lib/octave -loctave -lcruft -loctinterp" + export LKPATHSEA="-L${SRCOCTAVE}/kpathsea -lkpathsea" + export LREADLINE=" -L${SRCOCTAVE}/readline -lreadline" + export LSYSTEM="-ldl -lm -lncurses" + export LF2C="-L${PREFIX}/lib/gcc-lib/${PLAT}/${GCCVERS} -lg2c" # compiler options - DEBUG="-g" - OPTIM="-O3" - FLAGS="-fno-rtti -fno-exceptions -fno-implicit-templates" + export DEBUG="-g" + export OPTIM="-O3" + export FLAGS="-fno-rtti -fno-exceptions -fno-implicit-templates" # exported variables export MTT_CXX="g++" export MTT_CXXFLAGS="${DEBUG} ${OPTIM} ${FLAGS}" export MTT_CXXLIBS="${LOCTAVE} ${LKPATHSEA} ${LREADLINE} ${LF2C} ${LSYSTEM}" export MTT_CXXINCS="-I. ${IOCTAVE}" export MTT_LDFLAGS=" " fi