Replace automatic build system with more warnings turned on-
Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
This commit is contained in:
parent
e8dd63b5df
commit
1600f1b4ca
@ -32,11 +32,31 @@ function varargout = processgrid_mex(varargin)
|
|||||||
% $Date$
|
% $Date$
|
||||||
% $Revision$
|
% $Revision$
|
||||||
|
|
||||||
% Build MEX edition of same.
|
% Build MEX edition of same.
|
||||||
%
|
%
|
||||||
buildmex CFLAGS='$CFLAGS -Wall -fPIC' processgrid.c preprocess.c ...
|
|
||||||
uniquepoints.c facetopology.c sparsetable.c mxgrdecl.c ...
|
v = version;v = v([1,3]);
|
||||||
-output processgrid_mex.mexa64
|
|
||||||
|
CFLAGS = {'CFLAGS="\$CFLAGS', '-g', '-Wall', '-Wextra', '-ansi', ...
|
||||||
|
'-pedantic', '-Wformat-nonliteral', '-Wcast-align', ...
|
||||||
|
'-Wpointer-arith', '-Wbad-function-cast', ...
|
||||||
|
'-Wmissing-prototypes ', '-Wstrict-prototypes', ...
|
||||||
|
'-Wmissing-declarations', '-Winline', '-Wundef', ...
|
||||||
|
'-Wnested-externs', '-Wcast-qual', '-Wshadow', ...
|
||||||
|
'-Wconversion', '-Wwrite-strings', '-Wno-conversion', ...
|
||||||
|
'-Wchar-subscripts', '-Wredundant-decls"'};
|
||||||
|
|
||||||
|
SRC = {'processgrid.c', 'preprocess.c', 'uniquepoints.c', ...
|
||||||
|
'facetopology.c', 'sparsetable.c', 'mxgrdecl.c'};
|
||||||
|
|
||||||
|
INCLUDE = {};
|
||||||
|
|
||||||
|
OPTS = {'-output', ['processgrid_mex.', mexext], ...
|
||||||
|
'-largeArrayDims', ['-DMATLABVERSION=', v], '-g'};
|
||||||
|
|
||||||
|
buildmex(CFLAGS{:}, INCLUDE{:}, OPTS{:}, SRC{:})
|
||||||
|
|
||||||
|
% Call MEX edition.
|
||||||
|
[varargout{1:nargout}] = processgrid_mex(varargin{:});
|
||||||
|
end
|
||||||
|
|
||||||
% Call MEX edition.
|
|
||||||
[varargout{1:nargout}] = processgrid_mex(varargin{:});
|
|
||||||
|
Loading…
Reference in New Issue
Block a user