Mercurial > hg > smallbox
comparison util/ksvd utils/make.m @ 70:c3eca463202d
(none)
author | idamnjanovic |
---|---|
date | Wed, 16 Mar 2011 14:16:57 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
69:5f1f436057ca | 70:c3eca463202d |
---|---|
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 |