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
@ -34,9 +34,29 @@ function varargout = processgrid_mex(varargin)
|
||||
|
||||
% 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
|
||||
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user