@echo off rem DF66OPTS.BAT rem rem Compile and link options used for building MEX-files rem using the Compaq Visual Fortran compiler version 6.6 rem rem $Revision: 1.1 $ $Date: 2002/06/03 12:17:13 $ rem rem ******************************************************************** rem General parameters rem ******************************************************************** set MATLAB=%MATLAB% set DF_ROOT=%DF_ROOT% set VCDir=%DF_ROOT%\VC98 set MSDevDir=%DF_ROOT%\Common\msdev98 set DFDir=%DF_ROOT%\DF98 set PATH=%MSDevDir%\bin;%DFDir%\BIN;%VCDir%\BIN;%PATH% set INCLUDE=%DFDir%\INCLUDE;%INCLUDE% set LIB=%DFDir%\LIB;%VCDir%\LIB;%LIB% rem ******************************************************************** rem Compiler parameters rem ******************************************************************** set COMPILER=df set COMPFLAGS=/fpp:"/m /S%MATLAB%/extern/include" /compile_only /tune:host /nologo /DMATLAB_MEX_FILE /keep set OPTIMFLAGS = /threads /optimize:4 /fast /arch:generic /assume:nodummy_aliases /inline:speed rem set OPTIMFLAGS=/libs:dll /threads /optimize:4 /fast /arch:generic /assume:nodummy_aliases /inline:speed /DNDEBUG set DEBUGFLAGS=/libs:dll /threads /dbglibs /debug:full /pdbfile set NAME_OBJECT=/Fo rem ******************************************************************** rem Linker parameters rem ******************************************************************** set LIBLOC=%MATLAB%\extern\lib\win32\digital\df60 set LINKER=link set LINKFLAGS=/DLL /EXPORT:_MEXFUNCTION@16 /LIBPATH:"%LIBLOC%" libmx.lib libmex.lib libmat.lib /implib:%LIB_NAME%.lib /NOLOGO set LINKOPTIMFLAGS= set LINKDEBUGFLAGS=/debug set LINK_FILE= set LINK_LIB= set NAME_OUTPUT="/out:%OUTDIR%%MEX_NAME%.dll" set RSP_FILE_INDICATOR=@ rem ******************************************************************** rem Resource compiler parameters rem ******************************************************************** set RC_COMPILER=rc /fo "%OUTDIR%mexversion.res" set RC_LINKER= rem ******************************************************************** rem There is little conflict between IMSL & CXML or MKL, but rem CXML & MKL conflict. I typically will leave all of the LIB variables rem uncommented, and I uncomment the IMSL LINK_FILE, but leave the rem other LINK_FILE variables commented. Then if I need MKL or CXML I rem specify the libs on the mex command line. rem ******************************************************************** rem ******************************************************************** rem Uncomment these lines for MKL 5.2 libs rem One of the architecture-specific lines below must also be uncommented rem ******************************************************************** set LINKFLAGS=%LINKFLAGS% mkl_s.lib mkl_lapack.lib set LIB=%LIB%;C:\Program Files\Intel\MKL\ia32\lib rem ******************************************************************** rem Choose One (p4=Pentium 4, p3=Pentium 3, def=all others) rem ******************************************************************** rem set LINKFLAGS=%LINKFLAGS% mkl_def.lib set LINKFLAGS=%LINKFLAGS% mkl_p3.lib rem set LINKFLAGS=%LINKFLAGS% mkl_p4.lib rem ******************************************************************** rem Uncomment these lines for IMSL libs rem ******************************************************************** set LINKFLAGS=%LINKFLAGS% sstatd.lib sstats.lib smathd.lib smaths.lib sf90mp.lib set LIB=%LIB%;%DFDir%\IMSL\LIB; rem ******************************************************************** rem Uncomment these lines for CXML libs rem ******************************************************************** rem set LINKFLAGS=%LINKFLAGS% cxml.lib set LIB=%LIB%;%DFDir%\CXML\LIB set INCLUDE=%INCLUDE%;%DFDir%\CXML\INCLUDE