Mercurial > hg > smallbox
annotate util/ksvd utils/ompbox utils/make.m @ 138:56d719a5fd31 ivand_dev
Audio Inpaintin Toolbox
author | Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk> |
---|---|
date | Thu, 21 Jul 2011 14:27:47 +0100 |
parents | 9207d56c5547 |
children |
rev | line source |
---|---|
ivan@137 | 1 function make |
ivan@137 | 2 %MAKE Build the OMPBox package. |
ivan@137 | 3 % MAKE compiles all OMPBox MEX functions, using Matlab's default MEX |
ivan@137 | 4 % compiler. If the MEX compiler has not been set-up before, please run |
ivan@137 | 5 % |
ivan@137 | 6 % mex -setup |
ivan@137 | 7 % |
ivan@137 | 8 % before using this MAKE file. |
ivan@137 | 9 |
ivan@137 | 10 % Ron Rubinstein |
ivan@137 | 11 % Computer Science Department |
ivan@137 | 12 % Technion, Haifa 32000 Israel |
ivan@137 | 13 % ronrubin@cs |
ivan@137 | 14 % |
ivan@137 | 15 % August 2009 |
ivan@137 | 16 |
ivan@137 | 17 |
ivan@137 | 18 % detect platform |
ivan@137 | 19 |
ivan@137 | 20 compstr = computer; |
ivan@137 | 21 is64bit = strcmp(compstr(end-1:end),'64'); |
ivan@137 | 22 |
ivan@137 | 23 |
ivan@137 | 24 % compilation parameters |
ivan@137 | 25 |
ivan@137 | 26 compile_params = cell(0); |
ivan@137 | 27 if (is64bit) |
ivan@137 | 28 compile_params{1} = '-largeArrayDims'; |
ivan@137 | 29 end |
ivan@137 | 30 |
ivan@137 | 31 |
ivan@137 | 32 % Compile files % |
ivan@137 | 33 |
ivan@137 | 34 ompsources = {'mexutils.c','ompcoreGabor.c','omputils.c','myblas.c','ompprof.c'}; |
ivan@137 | 35 |
ivan@137 | 36 disp('Compiling ompmex...'); |
ivan@137 | 37 mex('-g','ompmexGabor.c', ompsources{:},compile_params{:}); |
ivan@137 | 38 |
ivan@137 | 39 disp('Compiling omp2mex...'); |
ivan@137 | 40 mex('-g','omp2mexGabor.c',ompsources{:},compile_params{:}); |
ivan@137 | 41 |