1
function cs_test_make (force)
2
%CS_TEST_MAKE compiles the CSparse, Demo, and Test mexFunctions.
3
% The current directory must be CSparse/MATLAB/Test to use this function.
9
% Copyright 2006-2007, Timothy A. Davis.
10
% http://www.cise.ufl.edu/research/sparse
12
mexcmd = 'mex -DCS_LONG -I../../../UFconfig' ;
13
if (~isempty (strfind (computer, '64')))
14
mexcmd = [mexcmd ' -largeArrayDims'] ;
22
[object_files timestamp] = cs_make ;
25
mexfunc = { 'cs_ipvec', 'cs_pvec', 'cs_sparse2', ...
26
'cs_reach', 'cs_maxtransr', 'cs_reachr', 'cs_rowcnt', 'cs_frand' } ;
28
for i = 1:length(mexfunc)
29
[s t tobj] = cs_must_compile ('', mexfunc{i}, '_mex', ...
30
['.' mexext], 'cs_test_make.m', force) ;
31
if (s | tobj < timestamp) %#ok
32
cmd = [mexcmd ' -O -output ' mexfunc{i} ' ' mexfunc{i} '_mex.c -I..' ...
33
filesep '..' filesep 'Include -I..' ...
34
filesep 'CSparse ' object_files] ;
35
fprintf ('%s\n', cmd) ;