Overview
Comment:Fixed [ 898739 ] libhdf5 dependency breaks -cc reps.
Now uses mkoctfile to determine include and library flags.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 81283653fb7bbbb30af963cce0f9cd14e296c72da91ba1584b3bc1e681a5d2d0
User & Date: geraint@users.sourceforge.net on 2004-02-17 17:53:34
Other Links: branch diff | manifest | tags
Context
2004-02-17
18:03:34
Copied syncmail from the mttroot/CVSROOT version which is the latest
stable version (1.0) from the syncmail project
check-in: 6a58146393 user: geraint@users.sourceforge.net tags: origin/master, trunk
17:53:34
Fixed [ 898739 ] libhdf5 dependency breaks -cc reps.
Now uses mkoctfile to determine include and library flags.
check-in: 81283653fb user: geraint@users.sourceforge.net tags: origin/master, trunk
2004-02-11
10:22:35
Don't write out the detailed description check-in: 5af6e3bde2 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/mttrc from [751112acd9] to [f035813035].

11
12
13
14
15
16
17



18
19
20
21
22
23
24


###############################################################
## Version control history
###############################################################
## $Id$
## $Log$



## 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







>
>
>







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
  #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=" "

  ## End of Octave environment configuration
  ##
  #########################################################################################

  ############################################################  
  ##
  ## Configure environment for compilation of Matlab mex files







|
|
|
|
|
|
|
|
|
|
|
|
|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|







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"
      
  # 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


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