Replace automatic build system with more warnings turned on-

Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
This commit is contained in:
Jostein R. Natvig 2012-01-27 12:25:31 +00:00 committed by Bård Skaflestad
parent e8dd63b5df
commit 1600f1b4ca

View File

@ -32,11 +32,31 @@ function varargout = processgrid_mex(varargin)
% $Date$
% $Revision$
% Build MEX edition of same.
%
buildmex CFLAGS='$CFLAGS -Wall -fPIC' processgrid.c preprocess.c ...
uniquepoints.c facetopology.c sparsetable.c mxgrdecl.c ...
-output processgrid_mex.mexa64
% Build MEX edition of same.
%
v = version;v = v([1,3]);
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{:});