11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
+
+
+
|
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.40 2003/09/23 15:57:18 gawthrop
## And back to gv
##
## Revision 1.39 2003/09/22 17:38:56 gawthrop
## gv --> ghostview
##
## Revision 1.38 2003/07/13 21:53:24 geraint
## Updated to conform to latest Octave (tested with 2.1.49).
## - the pathsearch library was merged into liboctave last year
## - static_cast no longer seems to work between Matrix and ColumnVector
|
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
|
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
281
282
283
284
285
286
287
288
289
290
291
|
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
#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 }'`
LOCTAVE="-L${OCTAVEPREFIX}/lib/octave-${OCTAVEVERS} -loctave -lcruft -loctinterp -Wl,--rpath,${OCTAVEPREFIX}/lib/octave-${OCTAVEVERS}"
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=" "
# 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"
# include and library paths for Octave
if [ -z `which ${MKOCTFILE}` ]; then
# Octave development stuff not installed
# C++ and .oct representations will not work
OCTAVE_INC_FLAGS=" "
OCTAVE_LIB_FLAGS=" "
else
OCTAVE_INC_FLAGS="`${MKOCTFILE} --print INCFLAGS`"
OCTAVE_LIB_FLAGS="\
`${MKOCTFILE} --print LFLAGS` \
`${MKOCTFILE} --print LIBOCTAVE` \
`${MKOCTFILE} --print LIBCRUFT` \
`${MKOCTFILE} --print LIBOCTINTERP` \
`${MKOCTFILE} --print BLAS_LIBS` \
`${MKOCTFILE} --print FFTW_LIBS` \
`${MKOCTFILE} --print LIBS` \
`${MKOCTFILE} --print FLIBS` \
`${MKOCTFILE} --print RLD_FLAG`"
fi
# 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="${OCTAVE_LIB_FLAGS}"
export MTT_CXXINCS="-I. -I${MTT_LIB}/cc ${OCTAVE_INC_FLAGS}"
export MTT_LDFLAGS=" "
## End of Octave environment configuration
##
#########################################################################################
############################################################
##
## Configure environment for compilation of Matlab mex files
|