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.37 2002/09/19 08:08:15 gawthrop
## Updated documentation documentation
##
## Revision 1.36 2002/08/28 15:48:00 geraint
## Updated mttrc to make standalone C++ compilation configuration clearer.
##
## 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)).
##
|
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
|
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
|
-
-
-
+
-
-
-
|
# 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}"
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"
|