Differences From Artifact [6c7f56047d]:

To Artifact [8938ad0cb4]:


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
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
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
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
  export MKOCTFILE=mkoctfile

  #########################################################################################
  ##
  ## Configure environment for standalone compilation of files linked with Octave libraries
  # ode2odes.exe stuff
  ## (required for ode2odes.exe only)

    # local system
    # location of Octave directories on local system (usually /usr, /usr/local or /opt)

    PREFIX="/usr"
    OCTAVEPREFIX="/usr"

    # include paths
    # include paths for Octave

    IOCTAVE="-I${PREFIX}/include/octave/ -I${PREFIX}/include/octave/octave"
    IOCTAVE="-I${OCTAVEPREFIX}/include/octave/ -I${OCTAVEPREFIX}/include/octave/octave"

    # library paths
    # 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${PREFIX}/lib/octave-${OCTAVEVERS} -loctave -lcruft -loctinterp -Wl,--rpath,${PREFIX}/lib/octave-${OCTAVEVERS}"
	LOCTAVE="-L${OCTAVEPREFIX}/lib/octave-${OCTAVEVERS} -loctave -lcruft -loctinterp -Wl,--rpath,${OCTAVEPREFIX}/lib/octave-${OCTAVEVERS}"
    else
	LOCTAVE="-L${PREFIX}/lib/octave-${OCTAVEVERS} -loctave -lcruft -loctinterp -Wl,--rpath,${PREFIX}/lib/octave-${OCTAVEVERS} -loct-pathsearch -loct-readline"
	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"
    
    # compiler options
    # C++ compiler options

    DEBUG="-g"
    OPTIM="-O3"
    FLAGS="-fno-rtti -fno-exceptions -fno-implicit-templates"

    # exported variables
    # matlab flags

    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_CXX="g++"
    export MTT_CXXFLAGS="${DEBUG} ${OPTIM} ${FLAGS}"
    export MTT_CXXLIBS="${LOCTAVE} ${LSYSTEM}"
    export MTT_CXXINCS="-I. -I${MTT_LIB}/cc ${IOCTAVE}"
    export MTT_MATLAB_FLAGS="${MATLAB_FLAGS} ${MATLAB_INCS} ${MATLAB_LIBS}"

  ## End of Matlab environment configuration
  ##
  #############################################################

    export MTT_LDFLAGS=" "
    export MTT_MATLAB_FLAGS="${MATLAB_FLAGS} ${MATLAB_INCS} ${MATLAB_LIBS}"
fi

MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]