


COREMEX Macro to compile CORE_ functions.
COREMEX(MEXSTRING) is an macro that calls:
mex MEXSTRING CORE_library.c CORE_mextools.c msvc_libmwlapack.lib
where MEXSTRING is "[OPTS] SOURCEFILE". This compiles the MEX code in
SOURCEFILE and links to both CORE_library functions and BLAS/LAPACK.
'msvc_libmwlapack' is the static link definition for Microsoft
Visual C++; this file can be edited to work with Borland C++ Builder
link definitions instead by replacing 'msvc_libmwlapack' with
'libmwlapack'.

0001 function coremex(mexstring) 0002 %COREMEX Macro to compile CORE_ functions. 0003 % COREMEX(MEXSTRING) is an macro that calls: 0004 % mex MEXSTRING CORE_library.c CORE_mextools.c msvc_libmwlapack.lib 0005 % where MEXSTRING is "[OPTS] SOURCEFILE". This compiles the MEX code in 0006 % SOURCEFILE and links to both CORE_library functions and BLAS/LAPACK. 0007 % 0008 % 'msvc_libmwlapack' is the static link definition for Microsoft 0009 % Visual C++; this file can be edited to work with Borland C++ Builder 0010 % link definitions instead by replacing 'msvc_libmwlapack' with 0011 % 'libmwlapack'. 0012 0013 eval(['mex ' mexstring ' CORE_library.c CORE_mextools.c msvc_libmwlapack.lib']); % MSVC 0014 %eval(['mex ' mexstring ' CORE_library.c CORE_mextools.c libmwlapack.lib']); % Borland