]> git.pld-linux.org Git - packages/KLU.git/blame - KLU-ufconfig.patch
- added includes patch (fixes inclusion of AMD/BTF/COLAMD headers); release 2
[packages/KLU.git] / KLU-ufconfig.patch
CommitLineData
668c7709
JB
1--- KLU/Makefile.orig 2022-12-27 20:20:05.947465128 +0100
2+++ KLU/Makefile 2022-12-27 20:20:32.467321457 +0100
3@@ -6,7 +6,7 @@ VERSION = 1.3.0
e6c7c7e2 4
668c7709 5 default: all
e6c7c7e2 6
b9f6cd16
JB
7-include ../SuiteSparse_config/SuiteSparse_config.mk
8+include /usr/share/misc/SuiteSparse_config.mk
e6c7c7e2 9
668c7709
JB
10 demos: all
11
12--- KLU/Lib/Makefile.orig 2014-03-21 20:21:27.000000000 +0100
13+++ KLU/Lib/Makefile 2022-12-27 20:24:34.242678314 +0100
14@@ -2,7 +2,7 @@ default: all
e6c7c7e2
JB
15
16 ccode: all
17
b9f6cd16
JB
18-include ../../SuiteSparse_config/SuiteSparse_config.mk
19+include /usr/share/misc/SuiteSparse_config.mk
e6c7c7e2
JB
20
21 # for testing only:
22 # TEST = -DTESTING
668c7709
JB
23@@ -10,10 +10,10 @@ include ../../SuiteSparse_config/SuiteSp
24 C = $(CC) $(CF)
e6c7c7e2
JB
25
26 INC = ../Include/klu.h ../Include/klu_internal.h ../Include/klu_version.h \
b9f6cd16 27- ../../SuiteSparse_config/SuiteSparse_config.h Makefile
e6c7c7e2
JB
28+ Makefile
29
30-I = -I../../AMD/Include -I../../COLAMD/Include -I../../BTF/Include \
b9f6cd16 31- -I../Include -I../../SuiteSparse_config
e6c7c7e2
JB
32+I = -I/usr/include/amd -I/usr/include/colamd -I/usr/include/btf \
33+ -I../Include
34
35 all: library
36
8b190b63
JB
37--- KLU/Demo/Makefile.orig 2014-03-21 20:21:27.000000000 +0100
38+++ KLU/Demo/Makefile 2014-10-03 16:36:20.732918931 +0200
39@@ -3,23 +3,16 @@
e6c7c7e2
JB
40
41 default: all
42
b9f6cd16
JB
43-include ../../SuiteSparse_config/SuiteSparse_config.mk
44+include /usr/share/misc/SuiteSparse_config.mk
e6c7c7e2 45
b9f6cd16 46-CLIB = ../Lib/libklu.a ../../BTF/Lib/libbtf.a \
8b190b63 47- ../../AMD/Lib/libamd.a ../../COLAMD/Lib/libcolamd.a \
b9f6cd16 48- ../../SuiteSparse_config/libsuitesparseconfig.a
8b190b63
JB
49+CLIB = ../Lib/libklu.a -lbtf -lamd -lcolamd -lsuitesparseconfig
50
51-CHOLMOD_LIB = ../../CHOLMOD/Lib/libcholmod.a
52-CHOLMOD = $(CHOLMOD_LIB) $(LAPACK) $(BLAS) $(XERBLA)
e6c7c7e2
JB
53+CHOLMOD = -lcholmod
54
8b190b63
JB
55-ifneq ($(GPU_CONFIG),)
56-CHOLMOD += $(CUDART_LIB) $(CUBLAS_LIB)
57-endif
e6c7c7e2
JB
58+I = -I/usr/include/amd -I/usr/include/colamd \
59+ -I/usr/include/btf -I../Include -I/usr/include/cholmod
60
8b190b63
JB
61-I = -I../../SuiteSparse_config -I../../AMD/Include -I../../COLAMD/Include \
62- -I../../BTF/Include -I../Include -I../../CHOLMOD/Include
63-
64-all: $(CLIB) klu_simple $(CHOLMOD_LIB) kludemo kluldemo
65+all: $(CLIB) klu_simple kludemo kluldemo
e6c7c7e2 66 - ./klu_simple
8b190b63
JB
67 - ./kludemo < ../Matrix/1c.mtx
68 - ./kludemo < ../Matrix/arrowc.mtx
69@@ -37,24 +30,6 @@
e6c7c7e2
JB
70 ../Lib/libklu.a:
71 ( cd ../Lib ; $(MAKE) )
72
73-../../BTF/Lib/libbtf.a:
74- ( cd ../../BTF ; $(MAKE) library )
75-
76-../../AMD/Lib/libamd.a:
77- ( cd ../../AMD ; $(MAKE) library )
78-
79-../../COLAMD/Lib/libcolamd.a:
80- ( cd ../../COLAMD ; $(MAKE) library )
81-
82-../../CHOLMOD/Lib/libcholmod.a:
83- ( cd ../../CHOLMOD ; $(MAKE) library )
84-# ( cd ../../CAMD ; $(MAKE) )
85-# ( cd ../../CCOLAMD ; $(MAKE) )
86-# ( cd ../../metis-4.0 ; $(MAKE) )
b9f6cd16
JB
87-
88-../../SuiteSparse_config/libsuitesparseconfig.a:
89- ( cd ../../SuiteSparse_config ; $(MAKE) )
e6c7c7e2
JB
90-
91 purge: distclean
92
93 distclean: clean
This page took 0.116727 seconds and 4 git commands to generate.