~logan/ubuntu/trusty/suitesparse/4.2.1-3ubuntu1

« back to all changes in this revision

Viewing changes to BTF/MATLAB/btf_make.m

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme
  • Date: 2007-05-29 09:36:29 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070529093629-zowquo0b7slkk6nc
Tags: 3.0.0-2
* suitesparse builds properly twice in a row
* Bug fix: "suitesparse - FTBFS: Broken build depens: libgfortran1-dev",
  thanks to Bastian Blank (Closes: #426349).
* Bug fix: "suitesparse_3.0.0-1: FTBFS: build-depends on
  libgfortran1-dev", thanks to Steve Langasek (Closes: #426354).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
function btf_make
 
2
%BTF_MAKE compile BTF for use in MATLAB
 
3
% Your current working directory must be BTF/MATLAB for this function to work.
 
4
%
 
5
% Example:
 
6
%   btf_make
 
7
%
 
8
% See also btf, maxtrans, stroncomp, dmperm.
 
9
 
 
10
% Copyright 2004-2007, Tim Davis, University of Florida
 
11
 
 
12
details = 0 ;       % if 1, print details of each command
 
13
 
 
14
mexcmd = 'mex -O -DDLONG -I../Include -I../../UFconfig ' ;
 
15
if (~isempty (strfind (computer, '64')))
 
16
    mexcmd = [mexcmd '-largeArrayDims '] ;
 
17
end
 
18
 
 
19
s = [mexcmd 'maxtrans.c ../Source/btf_maxtrans.c'] ;
 
20
if (details)
 
21
    fprintf ('%s\n', s) ;
 
22
end
 
23
eval (s) ;
 
24
 
 
25
s = [mexcmd 'strongcomp.c ../Source/btf_strongcomp.c'] ;
 
26
if (details)
 
27
    fprintf ('%s\n', s) ;
 
28
end
 
29
eval (s) ;
 
30
 
 
31
s = [mexcmd 'btf.c ../Source/btf_maxtrans.c ../Source/btf_strongcomp.c ../Source/btf_order.c'] ;
 
32
if (details)
 
33
    fprintf ('%s\n', s) ;
 
34
end
 
35
eval (s) ;
 
36
 
 
37
fprintf ('BTF successfully compiled.\n') ;