Mercurial > hg > smallbox
comparison examples/private/make.m @ 1:7750624e0c73 version0.5
(none)
author | idamnjanovic |
---|---|
date | Thu, 05 Nov 2009 16:36:01 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:5181bee80bc1 | 1:7750624e0c73 |
---|---|
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 |