annotate DL/RLS-DLA/private/make.m @ 60:ad36f80e2ccf

(none)
author idamnjanovic
date Tue, 15 Mar 2011 12:20:59 +0000
parents
children
rev   line source
idamnjanovic@60 1 function make
idamnjanovic@60 2 %MAKE Build the KSVDBox MEX support files.
idamnjanovic@60 3 % MAKE compiles the KSVDBox supporting MEX functions, using Matlab's
idamnjanovic@60 4 % default MEX compiler. If the MEX compiler has not been set-up before,
idamnjanovic@60 5 % please run
idamnjanovic@60 6 %
idamnjanovic@60 7 % mex -setup
idamnjanovic@60 8 %
idamnjanovic@60 9 % before using this MAKE file.
idamnjanovic@60 10
idamnjanovic@60 11 % Ron Rubinstein
idamnjanovic@60 12 % Computer Science Department
idamnjanovic@60 13 % Technion, Haifa 32000 Israel
idamnjanovic@60 14 % ronrubin@cs
idamnjanovic@60 15 %
idamnjanovic@60 16 % August 2009
idamnjanovic@60 17
idamnjanovic@60 18
idamnjanovic@60 19 % detect platform
idamnjanovic@60 20
idamnjanovic@60 21 compstr = computer;
idamnjanovic@60 22 is64bit = strcmp(compstr(end-1:end),'64');
idamnjanovic@60 23
idamnjanovic@60 24
idamnjanovic@60 25 % compilation parameters
idamnjanovic@60 26
idamnjanovic@60 27 compile_params = cell(0);
idamnjanovic@60 28 if (is64bit)
idamnjanovic@60 29 compile_params{1} = '-largeArrayDims';
idamnjanovic@60 30 end
idamnjanovic@60 31
idamnjanovic@60 32
idamnjanovic@60 33 % Compile files %
idamnjanovic@60 34
idamnjanovic@60 35 sourcefiles = {{'addtocols.c'}, {'collincomb.c'}, {'rowlincomb.c'}, {'sprow.c','mexutils.c'}, {'im2colstep.c'}, {'col2imstep.c'}};
idamnjanovic@60 36
idamnjanovic@60 37 for i = 1:length(sourcefiles)
idamnjanovic@60 38 printf('Compiling %s...', sourcefiles{i}{1});
idamnjanovic@60 39 mex(sourcefiles{i}{:},compile_params{:});
idamnjanovic@60 40 end