comparison Problems/private/make.m @ 10:207a6ae9a76f version1.0

(none)
author idamnjanovic
date Mon, 22 Mar 2010 15:06:25 +0000
parents
children 41a5a3c26961
comparison
equal deleted inserted replaced
9:28f2b5fe3483 10:207a6ae9a76f
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 % April 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'};
36
37 for i = 1:length(sourcefiles)
38 printf('Compiling %s...', sourcefiles{i});
39 mex(sourcefiles{i},compile_params{:});
40 end