59 lines
1.7 KiB
Batchfile
59 lines
1.7 KiB
Batchfile
@echo off
|
|
rem C:\ondra\tmp\dynare++\extern\matlab\mexopts.bat
|
|
rem Generated by gnumex.m script in c:\fs\gnumex-1.11
|
|
rem gnumex version: 1.11
|
|
rem Compile and link options used for building MEX etc files with
|
|
rem the Mingw/Cygwin tools. Options here are:
|
|
rem Mingw linking
|
|
rem Mex (*.dll) creation
|
|
rem Safe linking to temporary libraries
|
|
rem Language: C / C++
|
|
rem Compiling for pentium and above
|
|
rem Matlab version 7
|
|
rem
|
|
set MATLAB=C:\MATLAB7
|
|
set GM_PERLPATH=C:\MATLAB7\sys\perl\win32\bin\perl.exe
|
|
set GM_UTIL_PATH=c:\fs\gnumex-1.11
|
|
set PATH=c:\fs\mingw\bin;%PATH%
|
|
rem
|
|
rem Added libraries for linking
|
|
set GM_ADD_LIBS=
|
|
rem
|
|
rem Type of file to compile (mex or engine)
|
|
set GM_MEXTYPE=mex
|
|
rem
|
|
rem Language for compilation
|
|
set GM_MEXLANG=c
|
|
rem
|
|
rem def files to be converted to libs
|
|
set GM_DEFS2LINK=libmx.def;libmex.def;libmat.def;
|
|
rem
|
|
rem dlltool command line
|
|
set GM_DLLTOOL=dlltool
|
|
rem
|
|
rem compiler options; add compiler flags to compflags as desired
|
|
set NAME_OBJECT=-o
|
|
set COMPILER=gcc
|
|
set COMPFLAGS=-c -DMATLAB_MEX_FILE
|
|
set OPTIMFLAGS=-O3 -malign-double -fno-exceptions -mcpu=pentium
|
|
set DEBUGFLAGS=-g
|
|
set CPPCOMPFLAGS=%COMPFLAGS% -x c++
|
|
set CPPOPTIMFLAGS=%OPTIMFLAGS%
|
|
set CPPDEBUGFLAGS=%DEBUGFLAGS%
|
|
rem
|
|
rem NB Library creation commands occur in linker scripts
|
|
rem
|
|
rem Linker parameters
|
|
set LINKER=%GM_PERLPATH% %GM_UTIL_PATH%\linkmex.pl
|
|
set LINKFLAGS=
|
|
set CPPLINKFLAGS=GM_ISCPP
|
|
set LINKOPTIMFLAGS=-s
|
|
set LINKDEBUGFLAGS=-g -Wl,--image-base,0x28000000\n
|
|
set LINK_FILE=
|
|
set LINK_LIB=
|
|
set NAME_OUTPUT=-o %OUTDIR%%MEX_NAME%.dll
|
|
rem
|
|
rem Resource compiler parameters
|
|
set RC_COMPILER=%GM_PERLPATH% %GM_UTIL_PATH%\rccompile.pl -o %OUTDIR%mexversion.res
|
|
set RC_LINKER=
|