forked from GraphBLAS/LAGraph
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
58 lines (41 loc) · 1.53 KB
/
Makefile
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
51
52
53
54
55
56
57
#-------------------------------------------------------------------------------
# LAGraph/Makefile
#-------------------------------------------------------------------------------
# LAGraph, (... list all authors here) (c) 2019, All Rights Reserved.
# http://graphblas.org See LAGraph/LICENSE for license.
#-------------------------------------------------------------------------------
# note to developers: do not let cmake wipe out this Makefile. This file is
# not generated by cmake.
# simple Makefile for LAGraph, relies on cmake to do the actual build. Use
# the CMAKE_OPTIONS argument to this Makefile to pass options to cmake.
# Install GraphBLAS before trying to compile LAGraph.
JOBS ?= 1
# build the LAGraph library (static and dynamic)
library:
( cd build ; cmake $(CMAKE_OPTIONS) .. ; $(MAKE) --jobs=$(JOBS) )
# run all tests (do "make ; make tests")
tests:
( cd Test ; $(MAKE) --jobs=$(JOBS) )
# just run cmake; do not compile
cmake:
( cd build ; cmake $(CMAKE_OPTIONS) .. ; )
# the same as "make library"
static: library
# installs LAGraph to the install location defined by cmake, usually
# /usr/local/lib and /usr/local/include
install:
( cd build ; $(MAKE) install )
# TODO create the Doc/LAGraph.pdf
docs:
( cd Doc ; $(MAKE) )
# remove any installed libraries and #include files
uninstall:
- xargs rm < build/install_manifest.txt
clean: distclean
purge: distclean
# remove all files not in the distribution
distclean:
rm -rf build/*
rm -rf Doc/html/*
( cd Doc ; $(MAKE) distclean )
( cd Test ; $(MAKE) distclean )