-
Notifications
You must be signed in to change notification settings - Fork 56
/
gsp_make.m
54 lines (44 loc) · 1 KB
/
gsp_make.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
function [ ] = gsp_make( )
%GSP_MAKE Compile the necessary toolboxes for the gspbox
% Usage: gsp_make();
%
% This function compile the routine for the gspbox::
%
% gsp_make();
%
% TODO: clean this function!
gsp_start;
global GLOBAL_gsppath;
FS=filesep;
test = 0 ;
paths = { } ;
gsp_path = GLOBAL_gsppath ;
paths = add_to_path (paths, gsp_path) ;
% compile and install AMD
try
paths = add_to_path (paths, [gsp_path,FS,'3rdparty',FS,'LDL',FS,'AMD',FS,'MATLAB']) ;
amd_make ;
catch me
disp (me.message) ;
fprintf ('AMD not installed\n') ;
end
% compile and install LDL
try
paths = add_to_path (paths, [gsp_path,FS,'3rdparty',FS,'LDL',FS,'LDL',FS,'MATLAB']) ;
ldl_make ;
if test
ldlmain2 ;
ldltest ;
end
catch me
disp (me.message) ;
fprintf ('LDL not installed\n') ;
end
cd (gsp_path)
end
function paths = add_to_path (paths, newpath)
% add a path
cd (newpath) ;
addpath (newpath) ;
paths = [paths { newpath } ] ;
end