-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (38 loc) · 1.13 KB
/
Makefile
File metadata and controls
51 lines (38 loc) · 1.13 KB
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
#------------------------------------------------------------------------------
# CXSparse Makefile
#------------------------------------------------------------------------------
VERSION = 3.1.3
default: C
include SuiteSparse_config/SuiteSparse_config.mk
C:
( cd Lib ; $(MAKE) )
( cd Demo ; $(MAKE) )
all: C cov
library:
( cd Lib ; $(MAKE) )
cov:
( cd Tcov ; $(MAKE) )
clean:
( cd Lib ; $(MAKE) clean )
( cd Demo ; $(MAKE) clean )
( cd Tcov ; $(MAKE) clean )
( cd MATLAB/CSparse ; $(RM) *.o cs_cl_*.c )
( cd MATLAB/Test ; $(RM) *.o cs_cl_*.c )
purge:
( cd Lib ; $(MAKE) purge )
( cd Demo ; $(MAKE) purge )
( cd Tcov ; $(MAKE) purge )
( cd MATLAB/CSparse ; $(RM) *.o cs_cl_*.c *.mex* )
( cd MATLAB/Test ; $(RM) *.o cs_cl_*.c *.mex* )
distclean: purge
# install CSparse
install:
$(CP) Lib/libcxsparse.a $(INSTALL_LIB)/libcxsparse.$(VERSION).a
( cd $(INSTALL_LIB) ; ln -sf libcxsparse.$(VERSION).a libcxsparse.a )
$(CP) Include/cs.h $(INSTALL_INCLUDE)
chmod 644 $(INSTALL_LIB)/libcxsparse*.a
chmod 644 $(INSTALL_INCLUDE)/cs.h
# uninstall CSparse
uninstall:
$(RM) $(INSTALL_LIB)/libcxsparse*.a
$(RM) $(INSTALL_INCLUDE)/cs.h