]>
Commit | Line | Data |
---|---|---|
396f0219 JB |
1 | --- UMFPACK/Demo/Makefile.orig 2014-03-22 03:19:44.000000000 +0100 |
2 | +++ UMFPACK/Demo/Makefile 2014-10-03 16:13:22.816310091 +0200 | |
7b420823 | 3 | @@ -13,7 +13,7 @@ |
dab4846e | 4 | |
7b420823 | 5 | all64: libs run hb fortran64 |
dab4846e | 6 | |
a25446b9 JB |
7 | -include ../../SuiteSparse_config/SuiteSparse_config.mk |
8 | +include /usr/share/misc/SuiteSparse_config.mk | |
dab4846e | 9 | |
7b420823 JB |
10 | #------------------------------------------------------------------------------- |
11 | # the optional Partition module requires METIS, CAMD, and CCOLAMD | |
396f0219 | 12 | @@ -22,69 +22,36 @@ |
095e7190 JB |
13 | CONFIG1 = -DNCHOLMOD |
14 | CONFIG2 = -DNPARTITION | |
7b420823 | 15 | ifeq (,$(findstring -DNCHOLMOD, $(UMFPACK_CONFIG))) |
095e7190 | 16 | - # CHOLMOD is requested. See if it is available |
7b420823 JB |
17 | - ifeq (../../CHOLMOD, $(wildcard ../../CHOLMOD)) |
18 | - ifeq (../../COLAMD, $(wildcard ../../COLAMD)) | |
095e7190 JB |
19 | - # CHOLMOD and COLAMD are available |
20 | + # CHOLMOD is requested. | |
7b420823 | 21 | + ifeq ($(WITH_CHOLMOD), 1) |
095e7190 | 22 | + # assume COLAMD available |
7b420823 JB |
23 | CONFIG1 = |
24 | - LIB_WITH_CHOLMOD = ../../CHOLMOD/Lib/libcholmod.a \ | |
25 | - ../../COLAMD/Lib/libcolamd.a | |
26 | + LIB_WITH_CHOLMOD = -lcholmod -lcolamd | |
27 | # check if METIS is requested and available | |
28 | ifeq (,$(findstring -DNPARTITION, $(CHOLMOD_CONFIG))) | |
095e7190 JB |
29 | - # METIS is requested. See if it is available |
30 | - ifeq ($(METIS_PATH), $(wildcard $(METIS_PATH))) | |
7b420823 JB |
31 | - ifeq (../../CAMD, $(wildcard ../../CAMD)) |
32 | - ifeq (../../CCOLAMD, $(wildcard ../../CCOLAMD)) | |
095e7190 | 33 | - # METIS, CAMD, and CCOLAMD are available |
7b420823 JB |
34 | - LIB_WITH_PARTITION = $(METIS) \ |
35 | - ../../CCOLAMD/Lib/libccolamd.a \ | |
36 | - ../../CAMD/Lib/libcamd.a | |
095e7190 JB |
37 | - I_WITH_PARTITION = -I$(METIS_PATH)/Lib \ |
38 | - -I../../CCOLAMD/Include -I../../CAMD/Include | |
39 | + # METIS is requested. | |
40 | + ifeq ($(WITH_METIS), 1) | |
41 | + LIB_WITH_PARTITION = -lmetis -lccolamd -lcamd | |
42 | + I_WITH_PARTITION = -I/usr/include/metis \ | |
43 | + -I/usr/include/ccolamd -I/usr/include/camd | |
44 | CONFIG2 = | |
7b420823 JB |
45 | - endif |
46 | - endif | |
7b420823 JB |
47 | endif |
48 | endif | |
49 | - endif | |
50 | endif | |
51 | endif | |
52 | #------------------------------------------------------------------------------- | |
53 | ||
54 | C = $(CC) $(CF) $(UMFPACK_CONFIG) $(CONFIG1) $(CONFIG2) \ | |
a25446b9 | 55 | - -I../Include -I../../AMD/Include -I../../SuiteSparse_config |
7b420823 | 56 | + -I../Include -I/usr/include/amd |
dab4846e | 57 | |
a25446b9 | 58 | -INC = ../Include/umfpack.h ../../AMD/Include/amd.h ../../SuiteSparse_config/SuiteSparse_config.h |
7b420823 | 59 | +INC = ../Include/umfpack.h |
dab4846e | 60 | |
396f0219 | 61 | LIBS = $(LAPACK) $(BLAS) $(XERBLA) $(LIB) $(LIB_WITH_CHOLMOD) $(LIB_WITH_PARTITION) $(CUBLAS_LIB) $(CUDART_LIB) |
dab4846e | 62 | |
095e7190 JB |
63 | ../Lib/libumfpack.a: |
64 | ( cd ../Lib ; $(MAKE) ) | |
65 | ||
66 | -../../AMD/Lib/libamd.a: | |
67 | - ( cd ../../AMD ; $(MAKE) library ) | |
68 | - | |
69 | -../../SuiteSparse_config/libsuitesparseconfig.a: | |
70 | - ( cd ../../SuiteSparse_config ; $(MAKE) library ) | |
71 | - | |
72 | -../../CHOLMOD/Lib/libcholmod.a: | |
73 | - - ( cd ../../CHOLMOD && $(MAKE) library ) | |
74 | - | |
75 | -../../COLAMD/Lib/libcolamd.a: | |
76 | - - ( cd ../../COLAMD && $(MAKE) library ) | |
77 | - | |
78 | - | |
79 | -../../CCOLAMD/Lib/libccolamd.a: | |
80 | - - ( cd ../../CCOLAMD && $(MAKE) library ) | |
81 | - | |
82 | -../../CAMD/Lib/libcamd.a: | |
83 | - - ( cd ../../CAMD && $(MAKE) library ) | |
84 | - | |
85 | -$(METIS): | |
86 | - ( cd $(METIS_PATH) && $(MAKE) ) | |
87 | - | |
88 | -UMFPACK = ../Lib/libumfpack.a ../../AMD/Lib/libamd.a \ | |
89 | - ../../SuiteSparse_config/libsuitesparseconfig.a \ | |
396f0219 JB |
90 | +UMFPACK = ../Lib/libumfpack.a -lamd -lsuitesparseconfig \ |
91 | $(LIB_WITH_CHOLMOD) $(LIB_WITH_PARTITION) | |
095e7190 JB |
92 | |
93 | libs: $(UMFPACK) | |
dab4846e JR |
94 | --- UMFPACK/Doc/Makefile 2006-01-30 17:51:24.000000000 +0100 |
95 | +++ UMFPACK-uf/Doc/Makefile 2007-12-02 19:19:00.000000000 +0100 | |
96 | @@ -7,7 +7,7 @@ | |
97 | ||
98 | default: dist | |
99 | ||
a25446b9 JB |
100 | -include ../../SuiteSparse_config/SuiteSparse_config.mk |
101 | +include /usr/share/misc/SuiteSparse_config.mk | |
dab4846e JR |
102 | |
103 | #------------------------------------------------------------------------------- | |
104 | # Remove all but the files in the original distribution | |
a25446b9 JB |
105 | --- UMFPACK/Lib/GNUmakefile.orig 2012-05-28 01:23:50.000000000 +0200 |
106 | +++ UMFPACK/Lib/GNUmakefile 2012-06-27 20:04:57.011651575 +0200 | |
7b420823 | 107 | @@ -4,14 +4,14 @@ |
dab4846e | 108 | |
b5c89460 | 109 | default: libumfpack.a |
dab4846e | 110 | |
a25446b9 JB |
111 | -include ../../SuiteSparse_config/SuiteSparse_config.mk |
112 | +include /usr/share/misc/SuiteSparse_config.mk | |
dab4846e | 113 | |
7b420823 JB |
114 | # UMFPACK can use CHOLMOD by default as an ordering option |
115 | ifneq (,$(findstring -DNCHOLMOD, $(UMFPACK_CONFIG))) | |
a25446b9 | 116 | - I = -I../Include -I../Source -I../../AMD/Include -I../../SuiteSparse_config |
7b420823 JB |
117 | + I = -I../Include -I../Source -I/usr/include/amd |
118 | else | |
a25446b9 JB |
119 | - I = -I../Include -I../Source -I../../AMD/Include \ |
120 | - -I../../SuiteSparse_config -I../../CHOLMOD/Include | |
7b420823 JB |
121 | + I = -I../Include -I../Source -I/usr/include/amd \ |
122 | + -I/usr/include/cholmod | |
123 | endif | |
124 | ||
125 | C = $(CC) $(CF) $(UMFPACK_CONFIG) $(I) | |
a25446b9 | 126 | @@ -75,7 +75,7 @@ |
dab4846e JR |
127 | # include files: |
128 | #------------------------------------------------------------------------------- | |
129 | ||
a25446b9 | 130 | -INC = ../Include/umfpack.h ../../SuiteSparse_config/SuiteSparse_config.h \ |
dab4846e JR |
131 | +INC = ../Include/umfpack.h \ |
132 | ../Source/umf_config.h ../Source/umf_version.h \ | |
133 | ../Source/umf_internal.h ../Source/umf_triplet.h \ | |
134 | $(addprefix ../Source/, $(addsuffix .h,$(UMFCH))) \ | |
dab4846e JR |
135 | diff -ur UMFPACK/Lib/Makefile UMFPACK-uf/Lib/Makefile |
136 | --- UMFPACK/Lib/Makefile 2007-05-05 21:50:23.000000000 +0200 | |
137 | +++ UMFPACK-uf/Lib/Makefile 2007-12-02 19:19:20.000000000 +0100 | |
138 | @@ -8,7 +8,7 @@ | |
139 | ||
140 | default: everything | |
141 | ||
a25446b9 JB |
142 | -include ../../SuiteSparse_config/SuiteSparse_config.mk |
143 | +include /usr/share/misc/SuiteSparse_config.mk | |
dab4846e JR |
144 | |
145 | C = $(CC) $(CFLAGS) $(UMFPACK_CONFIG) -I../Include -I../../AMD/Include \ | |
146 | -I../Source | |
dab4846e JR |
147 | diff -ur UMFPACK/Makefile UMFPACK-uf/Makefile |
148 | --- UMFPACK/Makefile 2007-10-30 23:03:55.000000000 +0100 | |
149 | +++ UMFPACK-uf/Makefile 2007-12-02 19:21:14.000000000 +0100 | |
150 | @@ -6,7 +6,7 @@ | |
151 | ||
152 | default: library | |
153 | ||
a25446b9 JB |
154 | -include ../SuiteSparse_config/SuiteSparse_config.mk |
155 | +include /usr/share/misc/SuiteSparse_config.mk | |
dab4846e JR |
156 | |
157 | # compile all C code (except hb, fortran, and fortran64), including AMD and the | |
158 | # MATLAB mexFunctions | |
b5c89460 JB |
159 | --- UMFPACK/MATLAB/Makefile.orig 2009-11-11 21:10:02.000000000 +0100 |
160 | +++ UMFPACK/MATLAB/Makefile 2010-10-13 09:39:55.187740205 +0200 | |
161 | @@ -5,7 +5,7 @@ | |
162 | default: | |
163 | - echo "Use umfpack_make.m in MATLAB to compile the UMFPACK mexFunction" | |
dab4846e | 164 | |
a25446b9 JB |
165 | -include ../../SuiteSparse_config/SuiteSparse_config.mk |
166 | +include /usr/share/misc/SuiteSparse_config.mk | |
dab4846e | 167 | |
dab4846e | 168 | #------------------------------------------------------------------------------- |
b5c89460 | 169 | # Remove all but the files in the original distribution |
dab4846e JR |
170 | diff -ur UMFPACK/Tcov/Makefile UMFPACK-uf/Tcov/Makefile |
171 | --- UMFPACK/Tcov/Makefile 2006-12-01 13:47:48.000000000 +0100 | |
172 | +++ UMFPACK-uf/Tcov/Makefile 2007-12-02 19:21:03.000000000 +0100 | |
173 | @@ -1,5 +1,5 @@ | |
174 | ||
a25446b9 JB |
175 | -include ../../SuiteSparse_config/SuiteSparse_config.mk |
176 | +include /usr/share/misc/SuiteSparse_config.mk | |
dab4846e JR |
177 | |
178 | linux: distclean | |
179 | ./DO.linux |