Skip to content

Commit c195f0c

Browse files
committed
feat: add deps
1 parent 824a44d commit c195f0c

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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

Makefile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+

vendor/GraphBLAS

Submodule GraphBLAS added at 50cca24

vendor/LAGraph

Submodule LAGraph added at e2539e2

0 commit comments

Comments
 (0)