1#-------------------------------------------------------------------------------
2# GPUQREngine Makefile
3#-------------------------------------------------------------------------------
4
5SUITESPARSE ?= $(realpath $(CURDIR)/..)
6export SUITESPARSE
7
8# default is 'library' since there is no demo program
9default: library
10
11include ../SuiteSparse_config/SuiteSparse_config.mk
12
13# Compile the C-callable libraries
14all: library
15
16# Compile the C-callable libraries only.
17library:
18	( cd Lib ; $(MAKE) )
19
20# compile the static libraries only
21static:
22	( cd Lib    ; $(MAKE) static )
23
24# Remove all files not in the original distribution
25purge:
26	( cd Lib ; $(MAKE) purge )
27	( cd Demo ; $(MAKE) purge )
28
29# Remove all files not in the original distribution, except keep the
30# compiled libraries.
31clean:
32	( cd Lib ; $(MAKE) clean )
33	( cd Demo ; $(MAKE) clean )
34
35distclean: purge
36
37ccode: all
38
39# install GPUQREngine.  Note that the include files are not installed.
40install:
41	( cd Lib ; $(MAKE) install )
42
43uninstall:
44	( cd Lib ; $(MAKE) uninstall )
45