File tree Expand file tree Collapse file tree 4 files changed +36
-0
lines changed Expand file tree Collapse file tree 4 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ [submodule "vendor/GraphBLAS "]
2+ path = vendor/GraphBLAS
3+ url = https://github.com/DrTimothyAldenDavis/GraphBLAS.git
4+ [submodule "vendor/LAGraph "]
5+ path = vendor/LAGraph
6+ url = https://github.com/GraphBLAS/LAGraph.git
Original file line number Diff line number Diff line change 1+ LIBPATH := $(shell dirname "$(realpath "$(lastword $(MAKEFILE_LIST ) ) ") ")
2+ GRAPH_BLAS_PATH := $(LIBPATH ) /vendor/GraphBLAS
3+ LAGRAPH_PATH := $(LIBPATH ) /vendor/LAGraph
4+ BUILD := $(GRAPH_BLAS_PATH ) /build
5+ LAGRAPH_BUILD := $(LAGRAPH_PATH ) /build
6+ JOBS := $(shell nproc)
7+
8+ all : build lagraph
9+ build : $(BUILD )
10+ cd $(GRAPH_BLAS_PATH ) && \
11+ cmake -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
12+ -DCMAKE_BUILD_TYPE=Release \
13+ -G Ninja -B build
14+ cmake --build $(BUILD ) --parallel $(JOBS )
15+
16+ lagraph : $(LAGRAPH_BUILD )
17+ cd $(LAGRAPH_PATH ) && \
18+ cmake -DGraphBLAS_DIR=$(BUILD ) \
19+ -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
20+ -DCMAKE_BUILD_TYPE=Release \
21+ -G Ninja -B build
22+ cmake --build $(LAGRAPH_BUILD ) --parallel $(JOBS )
23+
24+ clean :
25+ rm -rf $(BUILD ) $(LAGRAPH_BUILD )
26+
27+ .PHONY : all build lagraph clean
28+
You can’t perform that action at this time.
0 commit comments