Commit d8d191bb authored by sebastien's avatar sebastien
Browse files

v4 matlab/mex:

* adapted build.m for MacOS/PowerPC
* added corresponding binaries for Matlab 7.5


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1683 ac1d8469-bf42-47a9-8791-bf33cf982152
parent 4443d561
File mode changed from 100644 to 100755
......@@ -16,7 +16,8 @@ MATLAB_PATH = matlabroot;
COMPILE_OPTIONS = '';
if strcmpi('GLNX86', computer) || strcmpi('GLNXA64', computer) ...
|| strcmpi('MACI', computer) % GNU/Linux (i386 or ET64) or MacIntel
|| strcmpi('MACI', computer) || strcmpi('MAC', computer)
% GNU/Linux (x86-32 or x86-64) or MacOS (Intel or PPC)
if strcmpi('GLNXA64', computer) % 64 bits ?
COMPILE_OPTIONS = [ COMPILE_OPTIONS ' -largeArrayDims' ];
end
......@@ -27,8 +28,8 @@ if strcmpi('GLNX86', computer) || strcmpi('GLNXA64', computer) ...
else
BLAS_PATH = '-lmwblas';
end
elseif strcmpi('PCWIN', computer) % Windows (32 bits) with Microsoft or
% gcc compiler
elseif strcmpi('PCWIN', computer)
% Windows (x86-32) with Microsoft or gcc compiler
LIBRARY_PATH = [MATLAB_PATH '/extern/lib/win32/microsoft/'];
LAPACK_PATH = ['"' LIBRARY_PATH 'libmwlapack.lib"'];
if VERSION <= 7.4
......@@ -51,8 +52,8 @@ end
COMPILE_OPTIONS = [ COMPILE_OPTIONS ' -v' ]
COMPILE_COMMAND = [ 'mex ' COMPILE_OPTIONS ' -outdir ' OUTPUT_DIR ' ' ];
if (strcmpi('MACI', computer))
% Need to specify mex path under MacIntel
if strcmpi('MACI', computer) || strcmpi('MAC', computer)
% Need to specify mex path under MacOS
COMPILE_COMMAND = [ MATLAB_PATH '/bin/' COMPILE_COMMAND ];
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment