SM_ADC  1.0
Приём данных АЦП через разделяемую память
make.m
Go to the documentation of this file.
1 function make(file,files,options)
2 %MAKE Compile MEX-function with easyLink library.
3 %
4 % Usages:
5 % make(file)
6 % make(file,files)
7 % make(file,files,options)
8 %
9 % Description:
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.
15 %
16 % Use 'files' argument to add any combinations of source files,
17 % object files, and library files.
18 %
19 % Use 'options' argument to add command line options to MEX. Use the
20 % mex -help command for more informations.
21 %
22 % The MEX function must have been configured previously using the
23 % mex -setup command.
24 %
25 % Example:
26 %
27 % make('sfun_offset.cpp')
28 %
29 % MAKE is part of easyLink Library.
30 % Copyright (c) 2014 FEMTO-ST, ENSMM, UFC, CNRS.
31 
32 if (nargin<3)
33  options='';
34 end
35 if (nargin<2)
36  files='';
37 end
38 
39 path=fileparts(which('make.m'));
40 files=['-I' path '/include ' files];
41 
42 if strcmp(computer,'PCWIN') || strcmp(computer,'PCWIN64')
43 
44 elseif strcmp(computer,'MACI') || strcmp(computer,'GLNX86')
45  options=['CFLAGS="\$CFLAGS -m32" LDFLAGS="\$LDFLAGS -m32" ' options];
46 elseif strcmp(computer,'MACI64') || strcmp(computer,'GLNXA64')
47 
48 else
49  disp('Unknown platform');
51 end
52 
53 disp(['easyLink: Compiling ' file]);
54 P=['mex ' options ' ' file ' ' files];
55 eval(P);
56 
eval(P)
files
Definition: make.m:40
if strcmp(computer, 'PCWIN')||strcmp(computer
P
Definition: make.m:54
if PCWIN64 elseif GLNX86 options
Definition: make.m:45
elseif GLNXA64 else disp('Unknown platform')
end path
Definition: make.m:39
return
Definition: make.m:50