1 | @echo off |
---|
2 | rem |
---|
3 | rem Compile and link options used for building MIXPP MEX-files |
---|
4 | rem using the Microsoft Visual Studio 9.0 |
---|
5 | rem |
---|
6 | rem ******************************************************************** |
---|
7 | rem General parameters |
---|
8 | rem ******************************************************************** |
---|
9 | set MATLAB=%MATLAB% |
---|
10 | set MSVCDir=D:\Visual Studio 9.0\VC |
---|
11 | set PATH=%MSVCDir%\bin;%MATLAB_BIN%;%PATH%; |
---|
12 | set INCLUDE=%MSVCDir%\INCLUDE;%INCLUDE% |
---|
13 | set LIB=%MSVCDir%\LIB;%MATLAB%\extern\lib\win32;%LIB% |
---|
14 | rem ******************************************************************** |
---|
15 | rem Compiler parameters |
---|
16 | rem ******************************************************************** |
---|
17 | set COMPILER=cl |
---|
18 | set COMPFLAGS=-c -Zp8 -W3 -DMATLAB_MEX_FILE -nologo |
---|
19 | set OPTIMFLAGS=/MD -O2 -Oy- -DNDEBUG |
---|
20 | set DEBUGFLAGS=/MDd -Zi -Fd"%OUTDIR%%MEX_NAME%.pdb" |
---|
21 | set NAME_OBJECT=/Fo |
---|
22 | |
---|
23 | rem ******************************************************************** |
---|
24 | rem Linker parameters |
---|
25 | rem ******************************************************************** |
---|
26 | set LIBLOC=%MATLAB%\extern\lib\win32\microsoft\msvc70 |
---|
27 | set LINKER=link |
---|
28 | set LINKFLAGS=/dll /export:%ENTRYPOINT% /MAP /LIBPATH:"%LIBLOC%" libmx.lib libmex.lib libmat.lib /implib:%LIB_NAME%.x |
---|
29 | set LINKOPTIMFLAGS= |
---|
30 | set LINKDEBUGFLAGS=/debug |
---|
31 | set LINK_FILE= |
---|
32 | set LINK_LIB= |
---|
33 | set NAME_OUTPUT=/out:"%OUTDIR%%MEX_NAME%.dll" |
---|
34 | set RSP_FILE_INDICATOR=@ |
---|
35 | |
---|
36 | rem ******************************************************************** |
---|
37 | rem Resource compiler parameters |
---|
38 | rem ******************************************************************** |
---|
39 | set RC_COMPILER=rc /fo "%OUTDIR%mexversion.res" |
---|
40 | set RC_LINKER= |
---|
41 | |
---|
42 | set POSTLINK_CMDS=del "%OUTDIR%%MEX_NAME%.map" |
---|
43 | set POSTLINK_CMDS1=del %LIB_NAME%.x |
---|