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
|
#!/bin/csh
## Automatically generated from bashrc on Wed Apr 24 10:24:58 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.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
|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
|
#
# Revision 1.2 1997/12/04 10:49:16 peterg
# Put under RCS at last
# Added CC variable
#
###############################################################
## When using csh, replace /home/peterg/Development/mttroot/mtt by the mtt base path, eg /usr/share/mtt/latest
setenv MTT_BASE /home/peterg/Development/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
#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//\:\:
|
|
|
|
|
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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
|
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
# ode2odes.exe stuff
# local system
set PLAT="i686-pc-linux-gnu"
set PREFIX="/usr"
set GCCVERS="2.95.2"
# include paths
set IOCTAVE="-I${PREFIX}/include/octave/ -I${PREFIX}/include/octave/octave"
# library paths
set OCTAVEVERS=`octave --version | awk '{ print $4 }'`
set LOCTAVE="-L${PREFIX}/lib/octave-${OCTAVEVERS} -loctave -lcruft -loctinterp"
set LSYSTEM="-ldl -lm -lncurses -lkpathsea -lreadline -lblas -llapack -lfftw -lg2c"
# 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. ${IOCTAVE}"
setenv MTT_LDFLAGS " "
|
|
>
>
>
|
|
<
|
<
|
|
|
|
>
>
|
>
>
|
|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
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
##
#############################################################
|