2 %MAKE Compile MEX-function with easyLink library.
10 % MAKE calls the MATLAB MEX function that compiles and links source
11 % files into a shared library called a MEX-file, executable from
12 % within MATLAB. The resulting file has a platform-dependent
13 % extension. Use the MEXEXT command to return the extension for this
14 % machine or for all supported platforms.
16 % Use 'files' argument to add any combinations of source files,
17 % object files, and library files.
19 % Use 'options' argument to add command line options to MEX. Use the
20 % mex -help command for more informations.
22 % The MEX function must have been configured previously using the
27 % make('sfun_offset.cpp')
29 % MAKE is part of easyLink Library.
30 % Copyright (c) 2014 FEMTO-ST, ENSMM, UFC, CNRS.
39 path=fileparts(which(
'make.m'));
40 files=['-I' path '/include ' files];
42 if strcmp(computer,
'PCWIN') ||
strcmp(computer,
'PCWIN64')
44 elseif
strcmp(computer,'MACI') ||
strcmp(computer,'GLNX86')
46 elseif
strcmp(computer,'MACI64') ||
strcmp(computer,'GLNXA64')
49 disp('Unknown platform');
53 disp(['easyLink: Compiling ' file]);
if strcmp(computer, 'PCWIN')||strcmp(computer
if PCWIN64 elseif GLNX86 options
elseif GLNXA64 else disp('Unknown platform')