1#------------------------------------------------------------------------------
2# KLU Makefile
3#------------------------------------------------------------------------------
4
5SUITESPARSE ?= $(realpath $(CURDIR)/..)
6export SUITESPARSE
7
8default: all
9
10include ../SuiteSparse_config/SuiteSparse_config.mk
11
12demos: all
13
14all:
15	( cd Lib ; $(MAKE) )
16	( cd Demo ; $(MAKE) )
17
18library:
19	( cd Lib ; $(MAKE) )
20
21# compile the static libraries only
22static:
23	( cd Lib    ; $(MAKE) static )
24
25clean:
26	( cd Demo ; $(MAKE) clean )
27	( cd Lib ; $(MAKE) clean )
28	( cd Tcov ; $(MAKE) clean )
29	( cd MATLAB ; $(RM) $(CLEAN) rename.h )
30
31distclean:
32	( cd Demo ; $(MAKE) distclean )
33	( cd Lib ; $(MAKE) distclean )
34	( cd Tcov ; $(MAKE) distclean )
35	( cd User ; $(MAKE) distclean )
36	( cd MATLAB ; $(RM) $(CLEAN) rename.h *.mex* )
37
38purge: distclean
39
40cov:
41	( cd Tcov ; $(MAKE) )
42
43# create PDF documents for the original distribution
44docs:
45	( cd Doc    ; $(MAKE) )
46
47# install KLU
48install:
49	( cd Lib ; $(MAKE) install )
50
51# uninstall KLU
52uninstall:
53	( cd Lib ; $(MAKE) uninstall )
54