mexopts.sh

来自「显著区域检测。求的图像中感兴趣区域的位置」· Shell 代码 · 共 316 行

SH
316
字号
## mexopts.sh	Shell script for configuring MEX-file creation script,#               mex.  These options were tested with the specified compiler.## usage:        Do not call this file directly; it is sourced by the#               mex shell script.  Modify only if you don't like the#               defaults after running mex.  No spaces are allowed#               around the '=' in the variable assignment.## SELECTION_TAGs occur in template option files and are used by MATLAB# tools, such as mex and mbuild, to determine the purpose of the contents# of an option file. These tags are only interpreted when preceded by '#'# and followed by ':'.##SELECTION_TAG_MEX_OPT: Template Options file for building MEX-files via the system ANSI compiler### This file is part of the SaliencyToolbox - Copyright (C) 2006-2007## by Dirk B. Walther and the California Institute of Technology.## See the enclosed LICENSE.TXT document for the license agreement. ## More information about this project is available at: ## http://www.saliencytoolbox.net## Original version:## Copyright 1984-2004 The MathWorks, Inc.# $Revision: 1.78.4.9 $  $Date: 2004/04/25 21:30:58 $#----------------------------------------------------------------------------#    TMW_ROOT="$MATLAB"    MFLAGS=''    if [ "$ENTRYPOINT" = "mexLibrary" ]; then        MLIBS="-L$TMW_ROOT/bin/$Arch -lmx -lmex -lmat -lmwservices -lut"    else          MLIBS="-L$TMW_ROOT/bin/$Arch -lmx -lmex -lmat"    fi    case "$Arch" in        Undetermined)#----------------------------------------------------------------------------# Change this line if you need to specify the location of the MATLAB# root directory.  The script needs to know where to find utility# routines so that it can determine the architecture; therefore, this# assignment needs to be done while the architecture is still# undetermined.#----------------------------------------------------------------------------            MATLAB="$MATLAB"            ;;        hpux)#----------------------------------------------------------------------------#           what `which cc`#           HP92453-01 B.11.11.06 HP C Compiler            CC='cc'            COMPFLAGS='-z +Z +DA2.0 -mt'            CFLAGS="-Ae $COMPFLAGS -Wp,-H65535"            CLIBS="$MLIBS -lm -lc"            COPTIMFLAGS='-O -DNDEBUG'            CDEBUGFLAGS='-g'##           what `which aCC`#           HP aC++ B3910B A.03.37#           HP aC++ B3910B A.03.30 Language Support Library            CXX='aCC'            CXXFLAGS="-AA -D_HPUX_SOURCE $COMPFLAGS"            CXXLIBS="$MLIBS -lm -lstd_v2 -lCsup_v2"            CXXOPTIMFLAGS='-O -DNDEBUG +Oconservative'            CXXDEBUGFLAGS='-g'##           what `which f90`#           HP-UX f90 20020606 (083554)  B3907DB/B3909DB B.11.01.60#           HP F90 v2.6#            $ PATCH/11.00:PHCO_95167  Oct  1 1998 13:46:32 $            F90LIBDIR='/opt/fortran90/lib/pa2.0'            FC='f90'            FFLAGS='+Z +DA2.0'            FLIBS="$MLIBS -lm -L$F90LIBDIR -lF90 -lcl -lc -lisamstub"            FOPTIMFLAGS='-O +Oconservative'            FDEBUGFLAGS='-g'#            if [ "$ffiles" = "1" ]; then            LD='cc'            else            LD="$COMPILER"            fi            LDEXTENSION='.mexhpux'            LDFLAGS="-b -Wl,+e,mexVersion,+e,mexFunction,+e,mexfunction,+e,mexLibrary,+e,_shlInit $COMPFLAGS"            LDOPTIMFLAGS='-O'            LDDEBUGFLAGS='-g'#            POSTLINK_CMDS=':'#----------------------------------------------------------------------------            ;;        glnx86)#----------------------------------------------------------------------------            RPATH="-Wl,--rpath-link,$TMW_ROOT/bin/$Arch"#           gcc -v#           gcc version 3.2.3            CC='gcc'#            CC='gcc-3'            #           For Redhat Fedora you can use version: 3.3#            CC='gcc33'            CFLAGS='-fPIC -ansi -D_GNU_SOURCE -pthread -fexceptions -m32'            CLIBS="$RPATH $MLIBS -lm -lstdc++"            COPTIMFLAGS='-O -DNDEBUG'            CDEBUGFLAGS='-g'#           #           g++ -v#           gcc version 3.2.3            CXX='g++'#            CXX='g++-3'            #           For Redhat Fedora you can use version: 3.3#            CXX='g++33'            CXXFLAGS='-fPIC -ansi -D_GNU_SOURCE -pthread '            CXXLIBS="$RPATH $MLIBS -lm"            CXXOPTIMFLAGS='-O -DNDEBUG'            CXXDEBUGFLAGS='-g'##           g77 -fversion#           GNU Fortran (GCC 3.2.3) 3.2.3 20030422 (release)#           NOTE: g77 is not thread safe            FC='g77'            FFLAGS='-fPIC -fexceptions'            FLIBS="$RPATH $MLIBS -lm -lstdc++"            FOPTIMFLAGS='-O'            FDEBUGFLAGS='-g'#            LD="$COMPILER"            LDEXTENSION='.mexglx'            LDFLAGS="-pthread -shared -m32 -Wl,--version-script,$TMW_ROOT/extern/lib/$Arch/$MAPFILE"            LDOPTIMFLAGS='-O'            LDDEBUGFLAGS='-g'#            POSTLINK_CMDS=':'#----------------------------------------------------------------------------            ;;        glnxi64)#----------------------------------------------------------------------------	    RPATH="-Wl,--rpath-link,$TMW_ROOT/bin/$Arch"#           ecc -V#           Version 7.1, Build 20030605             CC='ecc'            CFLAGS='-shared -KPIC -pthread -D_REENTRANT -D_POSIX_C_SOURCE=199506L'            CLIBS="$RPATH $MLIBS -lm"            COPTIMFLAGS='-O -DNDEBUG'	    CDEBUGFLAGS='-g'#           #           ecpc -V#           Version 7.1, Build 20030605             CXX='ecpc'            CXXFLAGS='-shared -KPIC -pthread -D_REENTRANT -D_POSIX_C_SOURCE=199506L'            CXXLIBS="$RPATH $MLIBS -lm"	    CXXOPTIMFLAGS='-O -DNDEBUG'	    CXXDEBUGFLAGS='-g'##           efc -V#           Version 7.1, Build 20030605             FC='efc'            FFLAGS='-shared -KPIC -pthread -w95 -w90'            FLIBS="$RPATH $MLIBS -lm"            FOPTIMFLAGS='-O'            FDEBUGFLAGS='-g'#            LD="$COMPILER"            LDEXTENSION='.mexi64'            LDFLAGS="-pthread -shared -Wl,--version-script,$TMW_ROOT/extern/lib/$Arch/$MAPFILE"            LDOPTIMFLAGS='-O'            LDDEBUGFLAGS='-g'#            POSTLINK_CMDS=':'#----------------------------------------------------------------------------            ;;        glnxa64)#----------------------------------------------------------------------------            RPATH="-Wl,--rpath-link,$TMW_ROOT/bin/$Arch"#           gcc -v#           gcc version 3.2.3            CC='gcc'            CFLAGS='-fPIC -fno-omit-frame-pointer -ansi -D_GNU_SOURCE -pthread -fexceptions'            CLIBS="$RPATH $MLIBS -lm -lstdc++"            COPTIMFLAGS='-O -DNDEBUG'            CDEBUGFLAGS='-g'#           #           g++ -v#           gcc version 3.2.3            CXX='g++'            CXXFLAGS='-fPIC -fno-omit-frame-pointer -ansi -D_GNU_SOURCE -pthread '            CXXLIBS="$RPATH $MLIBS -lm"            CXXOPTIMFLAGS='-O -DNDEBUG'            CXXDEBUGFLAGS='-g'##           g77 -fversion#           GNU Fortran (GCC 3.2.3) 3.2.3 20030422 (release)#           NOTE: g77 is not thread safe            FC='g77'            FFLAGS='-fPIC -fno-omit-frame-pointer -fexceptions'            FLIBS="$RPATH $MLIBS -lm -lstdc++"            FOPTIMFLAGS='-O'            FDEBUGFLAGS='-g'#            LD="$COMPILER"            LDEXTENSION='.mexa64'            LDFLAGS="-pthread -shared -Wl,--version-script,$TMW_ROOT/extern/lib/$Arch/$MAPFILE"            LDOPTIMFLAGS='-O'            LDDEBUGFLAGS='-g'#            POSTLINK_CMDS=':'#----------------------------------------------------------------------------            ;;        sol2)#----------------------------------------------------------------------------#           cc -V#           Sun C 5.5 Patch 112760-06 2004/01/13            CC='cc'            CFLAGS='-KPIC -dalign -xlibmieee -D__EXTENSIONS__ -D_POSIX_C_SOURCE=199506L -mt'            CLIBS="$MLIBS -lm -lc"            COPTIMFLAGS='-xO3 -xlibmil -DNDEBUG'            CDEBUGFLAGS='-xs -g'#           #           CC -V#           Sun C++ 5.5 Patch 113817-05 2004/01/13            CXX='CC -compat=5'            CCV=`CC -V 2>&1`            version=`expr "$CCV" : '.*\([0-9][0-9]*\)\.'`            if [ "$version" = "4" ]; then                    echo "SC5.0 or later C++ compiler is required"            fi            CXXFLAGS='-KPIC -dalign -xlibmieee -D__EXTENSIONS__ -D_POSIX_C_SOURCE=199506L -mt'            CXXLIBS="$MLIBS -lm -lCstd -lCrun"            CXXOPTIMFLAGS='-xO3 -xlibmil -DNDEBUG'            CXXDEBUGFLAGS='-xs -g'##           f90 -V#           Sun Fortran 95 7.1 Patch 112762-09 2004/01/26            FC='f90'            FFLAGS='-KPIC -dalign -mt'            FLIBS="$MLIBS -lfui -lfsu -lsunmath -lm -lc"            FOPTIMFLAGS='-O'            FDEBUGFLAGS='-xs -g'#            LD="$COMPILER"            LDEXTENSION='.mexsol'            LDFLAGS="-G -mt -M$TMW_ROOT/extern/lib/$Arch/$MAPFILE"            LDOPTIMFLAGS='-O'            LDDEBUGFLAGS='-xs -g'#            POSTLINK_CMDS=':'#----------------------------------------------------------------------------            ;;        mac)#----------------------------------------------------------------------------#           gcc-3.3 -v#           gcc version 3.3 20030304 (Apple Computer, Inc. build 1435)            CC='gcc-3.3'            CFLAGS='-fno-common -no-cpp-precomp -fexceptions'            CLIBS="$MLIBS -lstdc++"            COPTIMFLAGS='-O3 -DNDEBUG'            CDEBUGFLAGS='-g'##           g++-3.3 -v#           gcc version 3.3 20030304 (Apple Computer, Inc. build 1435)            CXX=g++-3.3            CXXFLAGS='-fno-common -no-cpp-precomp -fexceptions'            CXXLIBS="$MLIBS -lstdc++"            CXXOPTIMFLAGS='-O3 -DNDEBUG'            CXXDEBUGFLAGS='-g'##           f77 -V#           FORTRAN 77 Compiler 8.2a            FC='f77'            FFLAGS='-f -N15 -N11 -s -Q51 -W'            ABSOFTLIBDIR=`which $FC | sed -n -e '1s|bin/'$FC'|lib|p'`            FLIBS="-L$ABSOFTLIBDIR -lfio -lf77math"            FOPTIMFLAGS='-O -cpu:g4'            FDEBUGFLAGS='-g'#            LD="$CC"            LDEXTENSION='.mexmac'            LDFLAGS="-bundle -Wl,-flat_namespace -undefined suppress -Wl,-exported_symbols_list,$TMW_ROOT/extern/lib/$Arch/$MAPFILE"            LDOPTIMFLAGS='-O'            LDDEBUGFLAGS='-g'#            POSTLINK_CMDS=':'#----------------------------------------------------------------------------            ;;    esac############################################################################### Architecture independent lines:##     Set and uncomment any lines which will apply to all architectures.##----------------------------------------------------------------------------#           CC="$CC"#           CFLAGS="$CFLAGS"#           COPTIMFLAGS="$COPTIMFLAGS"#           CDEBUGFLAGS="$CDEBUGFLAGS"#           CLIBS="$CLIBS"##           FC="$FC"#           FFLAGS="$FFLAGS"#           FOPTIMFLAGS="$FOPTIMFLAGS"#           FDEBUGFLAGS="$FDEBUGFLAGS"#           FLIBS="$FLIBS"##           LD="$LD"#           LDFLAGS="$LDFLAGS"#           LDOPTIMFLAGS="$LDOPTIMFLAGS"#           LDDEBUGFLAGS="$LDDEBUGFLAGS"#----------------------------------------------------------------------------#############################################################################

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?