|
<?xml version="1.0" encoding="UTF-8" ?> |
|
<config |
|
Name="Intel Visual Fortran Composer XE 2015 with Microsoft Visual Studio 2013" |
|
ShortName="INTELF15MSVS2013" |
|
Manufacturer="Intel" |
|
Version="15.0" |
|
Language="FORTRAN" |
|
Priority="A" |
|
Location="$FORTRANROOT" > |
|
<Details |
|
CompilerExecutable="$COMPILER" |
|
CompilerDefines="$COMPDEFINES" |
|
CompilerFlags="$COMPFLAGS" |
|
OptimizationFlags="$OPTIMFLAGS" |
|
DebugFlags="$DEBUGFLAGS" |
|
IncludeFlags="$INCLUDE" |
|
LinkerExecutable="$LINKER" |
|
LinkerFlags="$LINKFLAGS" |
|
LinkerLibraries="$LINKLIBS" |
|
LinkerDebugFlags="$LINKDEBUGFLAGS" |
|
LinkerOptimizationFlags="$LINKOPTIMFLAGS" |
|
CommandLineShell="$FORTRANROOT\bin\ifortvars.bat " |
|
CommandLineShellArg="intel64 vs2013" |
|
CompilerDefineFormatter="/D%s" |
|
LinkerLibrarySwitchFormatter="lib%s.lib;%s.lib" |
|
LinkerPathFormatter="/LIBPATH:%s" |
|
LibrarySearchPath="$$LIB;$$LIBPATH;$$PATH;$$INCLUDE;$MATLABROOT\extern\lib\$ARCH\microsoft" |
|
/> |
|
<!-- Switch guide: http://msdn.microsoft.com/en-us/library/fwkeyyhe(v=vs.71).aspx --> |
|
<vars |
|
CMDLINE100="$COMPILER /c $COMPFLAGS $OPTIM $COMPDEFINES $INCLUDE $SRC /Fo$OBJ" |
|
CMDLINE200="$LINKER $LINKFLAGS $LINKTYPE $LINKOPTIM $LINKEXPORT $OBJS $LINKLIBS /out:$EXE" |
|
CMDLINE250="mt -outputresource:$EXE;2 -manifest $MANIFEST" |
|
CMDLINE300="del $EXP $LIB $MANIFEST $ILK" |
|
|
|
COMPILER="ifort" |
|
COMPFLAGS="/nologo /fpp /Qprec /fixed /MD /fp:source /assume:bscc " |
|
COMPDEFINES="/DMATLAB_MEX_FILE" |
|
OPTIMFLAGS="/O2 /DNDEBUG" |
|
INCLUDE="-I"$MATLABROOT\extern\include" -I"$MATLABROOT\simulink\include"" |
|
DEBUGFLAGS="/Z7" |
|
|
|
LINKER="link" |
|
LINKFLAGS=" /nologo /manifest /INCREMENTAL:NO" |
|
LINKTYPE="/DLL" |
|
LINKEXPORT="/EXPORT:MEXFUNCTION" |
|
LINKLIBS="/LIBPATH:"$MATLABROOT\extern\lib\$ARCH\microsoft" libmx.lib libmex.lib libmat.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib" |
|
LINKDEBUGFLAGS="/debug /PDB:"$TEMPNAME$LDEXT.pdb"" |
|
LINKOPTIMFLAGS="" |
|
|
|
OBJEXT=".obj" |
|
LDEXT=".mexw64" |
|
SETENV="set COMPILER=$COMPILER |
|
set COMPFLAGS=/c $COMPFLAGS $COMPDEFINES $MATLABMEX |
|
set OPTIMFLAGS=$OPTIMFLAGS |
|
set DEBUGFLAGS=$DEBUGFLAGS |
|
set LINKER=$LINKER |
|
set LINKFLAGS=$LINKFLAGS /export:%ENTRYPOINT% $LINKTYPE $LINKLIBS $LINKEXPORT |
|
set LINKDEBUGFLAGS=/debug /PDB:"%OUTDIR%%MEX_NAME%$LDEXT.pdb" |
|
set NAME_OUTPUT=/out:"%OUTDIR%%MEX_NAME%%MEX_EXT%"" |
|
/> |
|
<client> |
|
<engine |
|
LINKLIBS="$LINKLIBS libeng.lib" |
|
LINKEXPORT="/subsystem:console" |
|
LDEXT=".exe" |
|
LINKTYPE="" |
|
MATLABMEX="" |
|
/> |
|
</client> |
|
<locationFinder> |
|
<!-- FORTRANROOT=C:\Program Files (x86)\Intel\Composer XE 2015\ --> |
|
<FORTRANROOT> |
|
<and> |
|
<envVarExists name="IFORT_COMPILER15" /> |
|
<fileExists name="$$\Bin\intel64\ifort.exe" /> |
|
<dirExists name="$$\..\.." /> |
|
</and> |
|
</FORTRANROOT> |
|
<!-- VCROOT=C:\Program Files (x86)\Microsoft Visual Studio 12.0\ --> |
|
<VCROOT> |
|
<and> |
|
<or> |
|
<hklmExists path="SOFTWARE\Microsoft\VisualStudio\SxS\VC7" name="12.0" /> |
|
<hkcuExists path="SOFTWARE\Microsoft\VisualStudio\SxS\VC7" name="12.0" /> |
|
<hklmExists path="SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VC7" name="12.0" /> |
|
<hkcuExists path="SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VC7" name="12.0" /> |
|
</or> |
|
<fileExists name="$$\bin\amd64\cl.exe" /> |
|
<dirExists name="$$\..\.." /> |
|
</and> |
|
</VCROOT> |
|
<!-- SDKROOT=C:\Program Files (x86)\Windows Kits\8.1\ --> |
|
<SDKROOT> |
|
<or> |
|
<hklmExists path="SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.1" name="InstallationFolder" /> |
|
<hkcuExists path="SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.1" name="InstallationFolder" /> |
|
<hklmExists path="SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v8.1" name="InstallationFolder" /> |
|
<hkcuExists path="SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v8.1" name="InstallationFolder" /> |
|
</or> |
|
</SDKROOT> |
|
</locationFinder> |
|
<env |
|
PATH="$FORTRANROOT\bin\intel64;$VCROOT\bin\amd64;$VCROOT\vcpackages;$VCROOT\..\Common7\IDE;$VCROOT\..\Common7\Tools;$SDKROOT\bin\x64;" |
|
INCLUDE="$FORTRANROOT\compiler\include;$VCROOT\include;$SDKROOT\Include\shared;$SDKROOT\Include\um;$SDKROOT\Include\winrt;$MATLABROOT\extern\include;" |
|
LIB="$FORTRANROOT\compiler\lib\intel64;$VCROOT\lib\amd64;$SDKROOT\Lib\winv6.3\um\x64;$MATLABROOT\lib\win64;" |
|
LIBPATH="$FORTRANROOT\compiler\lib\intel64;$VCROOT\lib\amd64;$VCROOT\atlmfc\lib\amd64;$SDKROOT\Lib\winv6.3\um\x64;$MATLABROOT\extern\lib\win64;" |
|
/> |
|
</config> |
Thank you! You just saved me hours of agony :)