Go to the source code of this file.
|
function make(file, files, options) %MAKE Compile MEX-function with easyLink library. % % Usages end | if (nargin< 2) files |
|
if | strcmp (computer, 'PCWIN')||strcmp(computer |
|
if PCWIN64 elseif | strcmp (computer, 'MACI')||strcmp(computer |
|
elseif | strcmp (computer, 'MACI64')||strcmp(computer |
|
elseif GLNXA64 else | disp ('Unknown platform') |
|
end | disp (['easyLink:Compiling ' file]) |
|
| eval (P) |
|
|
end | path =fileparts(which('make.m')) |
|
| files =['-I' path '/include ' files] |
|
if PCWIN64 elseif GLNX86 | options =['CFLAGS="\$CFLAGS -m32" LDFLAGS="\$LDFLAGS -m32" ' options] |
|
| return |
|
| P =['mex ' options ' ' file ' ' files] |
|
◆ disp() [1/2]
elseif GLNXA64 else disp |
( |
'Unknown platform' |
| ) |
|
◆ disp() [2/2]
◆ eval()
◆ if()
function make (file,files,options) %MAKE Compile MEX-function with easyLink library. % % Usages end if |
( |
| ) |
|
◆ strcmp() [1/3]
if strcmp |
( |
computer |
, |
|
|
'PCWIN' |
|
|
) |
| |
◆ strcmp() [2/3]
if PCWIN64 elseif strcmp |
( |
computer |
, |
|
|
'MACI' |
|
|
) |
| |
◆ strcmp() [3/3]
elseif strcmp |
( |
computer |
, |
|
|
'MACI64' |
|
|
) |
| |
◆ files
files =['-I' path '/include ' files] |
◆ options
if PCWIN64 elseif GLNX86 options =['CFLAGS="\$CFLAGS -m32" LDFLAGS="\$LDFLAGS -m32" ' options] |
◆ path
end path =fileparts(which('make.m')) |
◆ return