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

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