forked from DrTimothyAldenDavis/SuiteSparse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
231 lines (210 loc) · 7.14 KB
/
Makefile
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
#-------------------------------------------------------------------------------
# Makefile for all SuiteSparse packages
#-------------------------------------------------------------------------------
# edit this variable to pass options to cmake:
export CMAKE_OPTIONS ?=
# edit this variable to control parallel make:
export JOBS ?= 8
# do not modify this variable
export SUITESPARSE = $(CURDIR)
#-------------------------------------------------------------------------------
# Compile the default rules for each package.
# default: "make install" will install all libraries in /usr/local/lib
# and include files in /usr/local/include. Not installed in SuiteSparse/lib.
default: library
# compile; "sudo make install" will install only in /usr/local
# (or whatever your CMAKE_INSTALL_PREFIX is)
library:
( cd SuiteSparse_config && $(MAKE) )
( cd Mongoose && $(MAKE) )
( cd AMD && $(MAKE) )
( cd BTF && $(MAKE) )
( cd CAMD && $(MAKE) )
( cd CCOLAMD && $(MAKE) )
( cd COLAMD && $(MAKE) )
( cd CHOLMOD && $(MAKE) )
( cd CSparse && $(MAKE) )
( cd CXSparse && $(MAKE) )
( cd LDL && $(MAKE) )
( cd KLU && $(MAKE) )
( cd UMFPACK && $(MAKE) )
( cd RBio && $(MAKE) )
( cd SuiteSparse_GPURuntime && $(MAKE) )
( cd GPUQREngine && $(MAKE) )
( cd SPQR && $(MAKE) )
( cd GraphBLAS && $(MAKE) )
( cd SPEX && $(MAKE) )
# compile; "make install" only in SuiteSparse/lib and SuiteSparse/include
local:
( cd SuiteSparse_config && $(MAKE) local )
( cd Mongoose && $(MAKE) local )
( cd AMD && $(MAKE) local )
( cd BTF && $(MAKE) local )
( cd CAMD && $(MAKE) local )
( cd CCOLAMD && $(MAKE) local )
( cd COLAMD && $(MAKE) local )
( cd CHOLMOD && $(MAKE) local )
( cd CSparse && $(MAKE) ) # CSparse is compiled but not installed
( cd CXSparse && $(MAKE) local )
( cd LDL && $(MAKE) local )
( cd KLU && $(MAKE) local )
( cd UMFPACK && $(MAKE) local )
( cd RBio && $(MAKE) local )
( cd SuiteSparse_GPURuntime && $(MAKE) local )
( cd GPUQREngine && $(MAKE) local )
( cd SPQR && $(MAKE) local )
( cd GraphBLAS && $(MAKE) local )
( cd SPEX && $(MAKE) local )
# compile; "sudo make install" will install only in /usr/local
# (or whatever your CMAKE_INSTALL_PREFIX is)
global:
( cd SuiteSparse_config && $(MAKE) global )
( cd Mongoose && $(MAKE) global )
( cd AMD && $(MAKE) global )
( cd BTF && $(MAKE) global )
( cd CAMD && $(MAKE) global )
( cd CCOLAMD && $(MAKE) global )
( cd COLAMD && $(MAKE) global )
( cd CHOLMOD && $(MAKE) global )
( cd CSparse && $(MAKE) ) # CSparse is compiled but not installed
( cd CXSparse && $(MAKE) global )
( cd LDL && $(MAKE) global )
( cd KLU && $(MAKE) global )
( cd UMFPACK && $(MAKE) global )
( cd RBio && $(MAKE) global )
( cd SuiteSparse_GPURuntime && $(MAKE) global )
( cd GPUQREngine && $(MAKE) global )
( cd SPQR && $(MAKE) global )
( cd GraphBLAS && $(MAKE) global )
( cd SPEX && $(MAKE) global )
# install all packages. Location depends on prior "make", "make global" etc
install:
( cd SuiteSparse_config && $(MAKE) install )
( cd Mongoose && $(MAKE) install )
( cd AMD && $(MAKE) install )
( cd BTF && $(MAKE) install )
( cd CAMD && $(MAKE) install )
( cd CCOLAMD && $(MAKE) install )
( cd COLAMD && $(MAKE) install )
( cd CHOLMOD && $(MAKE) install )
( cd CXSparse && $(MAKE) install ) # CXSparse is installed instead
( cd LDL && $(MAKE) install )
( cd KLU && $(MAKE) install )
( cd UMFPACK && $(MAKE) install )
( cd RBio && $(MAKE) install )
( cd SuiteSparse_GPURuntime && $(MAKE) install )
( cd GPUQREngine && $(MAKE) install )
( cd SPQR && $(MAKE) install )
( cd GraphBLAS && $(MAKE) install )
( cd SPEX && $(MAKE) install )
# uninstall all packages
uninstall:
( cd SuiteSparse_config && $(MAKE) uninstall )
( cd Mongoose && $(MAKE) uninstall )
( cd AMD && $(MAKE) uninstall )
( cd CAMD && $(MAKE) uninstall )
( cd COLAMD && $(MAKE) uninstall )
( cd BTF && $(MAKE) uninstall )
( cd KLU && $(MAKE) uninstall )
( cd LDL && $(MAKE) uninstall )
( cd CCOLAMD && $(MAKE) uninstall )
( cd UMFPACK && $(MAKE) uninstall )
( cd CHOLMOD && $(MAKE) uninstall )
( cd CXSparse && $(MAKE) uninstall )
( cd RBio && $(MAKE) uninstall )
( cd SuiteSparse_GPURuntime && $(MAKE) uninstall )
( cd GPUQREngine && $(MAKE) uninstall )
( cd SPQR && $(MAKE) uninstall )
( cd GraphBLAS && $(MAKE) uninstall )
( cd SPEX && $(MAKE) uninstall )
# Remove all files not in the original distribution
distclean: purge
# Remove all files not in the original distribution
purge:
- ( cd SuiteSparse_config && $(MAKE) purge )
- ( cd AMD && $(MAKE) purge )
- ( cd Mongoose && $(MAKE) purge )
- ( cd CAMD && $(MAKE) purge )
- ( cd COLAMD && $(MAKE) purge )
- ( cd BTF && $(MAKE) purge )
- ( cd KLU && $(MAKE) purge )
- ( cd LDL && $(MAKE) purge )
- ( cd CCOLAMD && $(MAKE) purge )
- ( cd UMFPACK && $(MAKE) purge )
- ( cd CHOLMOD && $(MAKE) purge )
- ( cd CSparse && $(MAKE) purge )
- ( cd CXSparse && $(MAKE) purge )
- ( cd RBio && $(MAKE) purge )
- ( cd SuiteSparse_GPURuntime && $(MAKE) purge )
- ( cd GPUQREngine && $(MAKE) purge )
- ( cd SPQR && $(MAKE) purge )
- $(RM) MATLAB_Tools/*/*.mex* MATLAB_Tools/*/*/*.mex*
- $(RM) MATLAB_Tools/*/*.o MATLAB_Tools/*/*/*.o
- $(RM) -r include/* bin/* lib/* Example/build/*
- ( cd GraphBLAS && $(MAKE) purge )
- ( cd SPEX && $(MAKE) purge )
clean: purge
# Run all demos
demos:
- ( cd SuiteSparse_config && $(MAKE) demos )
- ( cd Mongoose && $(MAKE) demos )
- ( cd AMD && $(MAKE) demos )
- ( cd CAMD && $(MAKE) demos )
- ( cd COLAMD && $(MAKE) demos )
- ( cd BTF && $(MAKE) demos )
- ( cd KLU && $(MAKE) demos )
- ( cd LDL && $(MAKE) demos )
- ( cd CCOLAMD && $(MAKE) demos )
- ( cd UMFPACK && $(MAKE) demos )
- ( cd CHOLMOD && $(MAKE) demos )
- ( cd CSparse && $(MAKE) demos )
- ( cd CXSparse && $(MAKE) demos )
- ( cd RBio && $(MAKE) demos )
- ( cd SPQR && $(MAKE) demos )
- ( cd GraphBLAS && $(MAKE) demos )
- ( cd SPEX && $(MAKE) demos )
# Create the PDF documentation
docs:
( cd GraphBLAS && $(MAKE) docs )
( cd Mongoose && $(MAKE) docs )
( cd AMD && $(MAKE) docs )
( cd CAMD && $(MAKE) docs )
( cd KLU && $(MAKE) docs )
( cd LDL && $(MAKE) docs )
( cd UMFPACK && $(MAKE) docs )
( cd CHOLMOD && $(MAKE) docs )
( cd SPQR && $(MAKE) docs )
( cd SPEX && $(MAKE) docs )
# statement coverage (Linux only); this requires a lot of time.
cov: local install
( cd CXSparse && $(MAKE) cov )
( cd CSparse && $(MAKE) cov )
( cd CHOLMOD && $(MAKE) cov )
( cd KLU && $(MAKE) cov )
( cd SPQR && $(MAKE) cov )
( cd UMFPACK && $(MAKE) cov )
( cd SPEX && $(MAKE) cov )
gbmatlab:
( cd GraphBLAS/GraphBLAS && $(MAKE) )
gblocal:
( cd GraphBLAS/GraphBLAS && $(MAKE) local && $(MAKE) install )
debug:
( cd SuiteSparse_config && $(MAKE) debug )
# ( cd Mongoose && $(MAKE) debug )
( cd AMD && $(MAKE) debug )
( cd BTF && $(MAKE) debug )
( cd CAMD && $(MAKE) debug )
( cd CCOLAMD && $(MAKE) debug )
( cd COLAMD && $(MAKE) debug )
( cd CHOLMOD && $(MAKE) debug )
( cd CSparse && $(MAKE) debug )
( cd CXSparse && $(MAKE) debug )
( cd LDL && $(MAKE) debug )
( cd KLU && $(MAKE) debug )
( cd UMFPACK && $(MAKE) debug )
( cd RBio && $(MAKE) debug )
( cd SuiteSparse_GPURuntime && $(MAKE) )
( cd GPUQREngine && $(MAKE) )
( cd SPQR && $(MAKE) debug )
( cd GraphBLAS && $(MAKE) debug )
( cd SPEX && $(MAKE) debug )