Overview
Comment: | Updated mttrc to make standalone C++ compilation configuration clearer. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
7654be327548999c05dc0924e1eedf32 |
User & Date: | geraint@users.sourceforge.net on 2002-08-28 15:48:01 |
Other Links: | branch diff | manifest | tags |
Context
2002-08-29
| ||
15:45:20 |
Tests for existence of matrix before entering shell loop. Tests for existence of expression before attempting to write or optimise. check-in: 45a1825412 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
2002-08-28
| ||
15:48:01 | Updated mttrc to make standalone C++ compilation configuration clearer. check-in: 7654be3275 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
2002-08-27
| ||
17:34:36 | Updated for new ppp_qp (using qp_mu from Will Heath/Adrian Wills check-in: 63e8024414 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/mttrc from [6c7f56047d] to [8938ad0cb4].
︙ | ︙ | |||
11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.34 2002/05/08 14:51:03 geraint ## Moved matlab/octave data type conversion functions to a separate file. ## ## Revision 1.33 2002/05/08 11:39:36 gawthrop ## Added MTT_REP to PATH ## ## Revision 1.32 2002/05/07 23:50:34 geraint | > > > > | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.35 2002/08/06 09:56:54 geraint ## Updated to work with changes in unstable version of Octave 2.1.36. ## Tested with 2.0.17 (ok) but will break earlier unstables (2.1.(<=35)). ## ## Revision 1.34 2002/05/08 14:51:03 geraint ## Moved matlab/octave data type conversion functions to a separate file. ## ## Revision 1.33 2002/05/08 11:39:36 gawthrop ## Added MTT_REP to PATH ## ## Revision 1.32 2002/05/07 23:50:34 geraint |
︙ | ︙ | |||
207 208 209 210 211 212 213 | export LATEX2HTML="latex2html -contents_in_navigation -index_in_navigation -address http://mtt.sourceforge.net" # Ascend stuff export ASCENDLIBRARY=$MTTPATH/ascend/lib # Oct file generation - use version with no optimisation. #export MKOCTFILE=$MTT_LIB/octave/mkoctfile # This for no optimisation | | > > > | | | | | | | | | > | > > > > > > > > > > > > > | | | > > | < < | 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 | export LATEX2HTML="latex2html -contents_in_navigation -index_in_navigation -address http://mtt.sourceforge.net" # Ascend stuff export ASCENDLIBRARY=$MTTPATH/ascend/lib # Oct file generation - use version with no optimisation. #export MKOCTFILE=$MTT_LIB/octave/mkoctfile # This for no optimisation export MKOCTFILE=mkoctfile ######################################################################################### ## ## Configure environment for standalone compilation of files linked with Octave libraries ## (required for ode2odes.exe only) # location of Octave directories on local system (usually /usr, /usr/local or /opt) OCTAVEPREFIX="/usr" # include paths for Octave IOCTAVE="-I${OCTAVEPREFIX}/include/octave/ -I${OCTAVEPREFIX}/include/octave/octave" # library paths for Octave OCTAVEVERS=`octave --version | head -1 | gawk '{ print $4 }'` OCTAVEMINOR=`echo ${OCTAVEVERS} | gawk -F\. '{print $2}'` if [ "${OCTAVEMINOR}" = "0" ] ; then # stable LOCTAVE="-L${OCTAVEPREFIX}/lib/octave-${OCTAVEVERS} -loctave -lcruft -loctinterp -Wl,--rpath,${OCTAVEPREFIX}/lib/octave-${OCTAVEVERS}" else LOCTAVE="-L${OCTAVEPREFIX}/lib/octave-${OCTAVEVERS} -loctave -lcruft -loctinterp -Wl,--rpath,${OCTAVEPREFIX}/lib/octave-${OCTAVEVERS} -loct-pathsearch -loct-readline" fi LSYSTEM="-ldl -lm -lncurses -lkpathsea -lreadline -lblas -llapack -lfftw -lg2c" # C++ compiler options DEBUG="-g" OPTIM="-O3" FLAGS="-fno-rtti -fno-exceptions -fno-implicit-templates" # exported variables export MTT_CXX="g++" export MTT_CXXFLAGS="${DEBUG} ${OPTIM} ${FLAGS}" export MTT_CXXLIBS="${LOCTAVE} ${LSYSTEM}" export MTT_CXXINCS="-I. -I${MTT_LIB}/cc ${IOCTAVE}" export MTT_LDFLAGS=" " ## End of Octave environment configuration ## ######################################################################################### ############################################################ ## ## Configure environment for compilation of Matlab mex files MATLAB_ARCH="glnx86" MATLAB_ROOT="/usr/local/matlab6p1" MATLAB_FLAGS="-shared -fPIC -ansi -D_GNU_SOURCE -pthread" MATLAB_INCS="-I${MATLAB_ROOT}/extern/include" MATLAB_LIBS="-Wl,--rpath-link,${MATLAB_ROOT}/extern/lib/${MATLAB_ARCH},--rpath-link,${MATLAB_ROOT}/bin/${MATLAB_ARCH} -L${MATLAB_ROOT}/bin/${MATLAB_ARCH} -lmx -lmex -lm" # exported variables export MTT_MATLAB_FLAGS="${MATLAB_FLAGS} ${MATLAB_INCS} ${MATLAB_LIBS}" ## End of Matlab environment configuration ## ############################################################# fi |
Modified mttroot/mtt/bin/mttrc.csh from [585da1cd36] to [7afd308e13].
1 | #!/bin/csh | | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | #!/bin/csh ## Automatically generated from bashrc on Wed Aug 28 15:17:42 BST 2002 - DO NOT EDIT #! /bin/sh ###################################### ##### Model Transformation Tools ##### ###################################### # Bourne shell script: mttrc - sets up paths etc for mtt # Usage: mttrc # Copyright (c) P.J.Gawthrop 1996,1977. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.35 2002/08/06 09:56:54 geraint ## Updated to work with changes in unstable version of Octave 2.1.36. ## Tested with 2.0.17 (ok) but will break earlier unstables (2.1.(<=35)). ## ## Revision 1.34 2002/05/08 14:51:03 geraint ## Moved matlab/octave data type conversion functions to a separate file. ## ## Revision 1.33 2002/05/08 11:39:36 gawthrop ## Added MTT_REP to PATH ## ## Revision 1.32 2002/05/07 23:50:34 geraint ## Preliminary support for Matlab dynamically linked shared objects: ## invoke with: mtt -cc sys rep mexglx ## ode2odes support is not yet included. ## ## Revision 1.31 2002/05/02 20:12:45 geraint ## Added -Wl,--rpath to MTT_CXXLIBS. Sets the runtime linker path so that the ## sys-admin does not have to ldconfig the octave directory for -cc to work. ## ## Revision 1.30 2002/05/02 11:10:11 geraint ## s/loctave/loctinterp/ ## ## Revision 1.29 2002/05/02 11:03:46 geraint ## Reinstated -liboctinterp and -lncurses; needed by xleftdiv. ## ## Revision 1.28 2002/05/01 12:21:29 geraint ## No longer uses save_ascii_data_for_plotting function to write data ## - eliminates dependence on liboctinterp (and libncurses) for .cc. ## ## Revision 1.27 2002/04/28 18:41:26 geraint ## Fixed [ 549658 ] awk should be gawk. ## Replaced calls to awk with call to gawk. ## ## Revision 1.26 2002/04/26 16:16:33 geraint ## Removed unnecessary variables PLAT and GCCVERS. ## ## Revision 1.25 2002/04/02 09:16:39 geraint ## Tidied up library search paths, now assumes that system libraries are set up correctly. ## For Debian, this means installing the following: blas-dev, fftw-dev, lapack-dev, libncurses5-dev, libkpathsea-dev, libreadline-dev ## It may also be necessary to run /sbin/ldconfig on the relevant directories (especially Octave's). ## ## Revision 1.24 2001/10/15 14:28:35 gawthrop ## Now has . at start of components library path $MTT_COMPONENTS |
︙ | ︙ | |||
104 105 106 107 108 109 110 | # # Revision 1.2 1997/12/04 10:49:16 peterg # Put under RCS at last # Added CC variable # ############################################################### | | | | | 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | # # Revision 1.2 1997/12/04 10:49:16 peterg # Put under RCS at last # Added CC variable # ############################################################### ## When using csh, replace /usr/local/mtt/mttroot/mtt by the mtt base path, eg /usr/share/mtt/latest setenv MTT_BASE /usr/local/mtt/mttroot/mtt echo Setting paths with base $MTT_BASE # The following line sets up the make to use -- gmake is the standard # but you may wish to use lsmake for parallelism setenv MAKE 'make' # The following sets up the c compiler setenv CC 'gcc' # Setup the paths setenv MTTPATH $MTT_BASE/bin setenv MTT_LIB $MTT_BASE/lib setenv MTT_DOC $MTT_BASE/doc setenv MTT_CC $MTT_BASE/cc setenv MTT_COMPONENTS .:$MTT_LIB/comp setenv MTT_CRS $MTT_LIB/cr setenv MTT_EXAMPLES $MTT_LIB/examples setenv MTT_REP $MTT_LIB/rep setenv PATH $PATH\:$MTTPATH\:$MTTPATH/trans\:$MTT_CC\:$MTT_REP #Setup octave setenv MATRIX_PATH $MTTPATH/trans/m// setenv MATRIX_PATH $MATRIX_PATH\:$MTT_LIB/comp/simple// setenv MATRIX_PATH $MATRIX_PATH\:$MTT_LIB/control// setenv MATRIX_PATH $MATRIX_PATH\:$MTT_LIB/octave//\:\: |
︙ | ︙ | |||
172 173 174 175 176 177 178 | setenv LATEX2HTML "latex2html -contents_in_navigation -index_in_navigation -address http://mtt.sourceforge.net" # Ascend stuff setenv ASCENDLIBRARY $MTTPATH/ascend/lib # Oct file generation - use version with no optimisation. #setenv MKOCTFILE $MTT_LIB/octave/mkoctfile # This for no optimisation | | > > > | | < | < | | | | > > | > > | | | > > > > > > > > > > > > > > > > > > > > > > > | 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 | setenv LATEX2HTML "latex2html -contents_in_navigation -index_in_navigation -address http://mtt.sourceforge.net" # Ascend stuff setenv ASCENDLIBRARY $MTTPATH/ascend/lib # Oct file generation - use version with no optimisation. #setenv MKOCTFILE $MTT_LIB/octave/mkoctfile # This for no optimisation setenv MKOCTFILE mkoctfile ######################################################################################### ## ## Configure environment for standalone compilation of files linked with Octave libraries ## (required for ode2odes.exe only) # location of Octave directories on local system (usually /usr, /usr/local or /opt) set OCTAVEPREFIX="/usr" # include paths for Octave set IOCTAVE="-I${OCTAVEPREFIX}/include/octave/ -I${OCTAVEPREFIX}/include/octave/octave" # library paths for Octave set OCTAVEVERS=`octave --version | head -1 | gawk '{ print $4 }'` set OCTAVEMINOR=`echo ${OCTAVEVERS} | gawk -F\. '{print $2}'` if [ "${OCTAVEMINOR}" = "0" ] ; then # stable LOCTAVE="-L${OCTAVEPREFIX}/lib/octave-${OCTAVEVERS} -loctave -lcruft -loctinterp -Wl,--rpath,${OCTAVEPREFIX}/lib/octave-${OCTAVEVERS}" LOCTAVE="-L${OCTAVEPREFIX}/lib/octave-${OCTAVEVERS} -loctave -lcruft -loctinterp -Wl,--rpath,${OCTAVEPREFIX}/lib/octave-${OCTAVEVERS} -loct-pathsearch -loct-readline" fi set LSYSTEM="-ldl -lm -lncurses -lkpathsea -lreadline -lblas -llapack -lfftw -lg2c" # C++ compiler options set DEBUG="-g" set OPTIM="-O3" set FLAGS="-fno-rtti -fno-exceptions -fno-implicit-templates" # exported variables setenv MTT_CXX "g++" setenv MTT_CXXFLAGS "${DEBUG} ${OPTIM} ${FLAGS}" setenv MTT_CXXLIBS "${LOCTAVE} ${LSYSTEM}" setenv MTT_CXXINCS "-I. -I${MTT_LIB}/cc ${IOCTAVE}" setenv MTT_LDFLAGS " " ## End of Octave environment configuration ## ######################################################################################### ############################################################ ## ## Configure environment for compilation of Matlab mex files set MATLAB_ARCH="glnx86" set MATLAB_ROOT="/usr/local/matlab6p1" set MATLAB_FLAGS="-shared -fPIC -ansi -D_GNU_SOURCE -pthread" set MATLAB_INCS="-I${MATLAB_ROOT}/extern/include" set MATLAB_LIBS="-Wl,--rpath-link,${MATLAB_ROOT}/extern/lib/${MATLAB_ARCH},--rpath-link,${MATLAB_ROOT}/bin/${MATLAB_ARCH} -L${MATLAB_ROOT}/bin/${MATLAB_ARCH} -lmx -lmex -lm" # exported variables setenv MTT_MATLAB_FLAGS "${MATLAB_FLAGS} ${MATLAB_INCS} ${MATLAB_LIBS}" ## End of Matlab environment configuration ## ############################################################# |