From 9dc60d8f3b0fff11b1bb9cec1a8669799dd2f0f1 Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Sun, 3 Mar 2024 18:16:35 +0100 Subject: [PATCH] chore: some enhancements --- Makefile | 4 +++- README.md | 12 ++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 39ef269..cdccf03 100644 --- a/Makefile +++ b/Makefile @@ -21,11 +21,13 @@ CUDAC_FLAGS := $(shell pkg-config --variable=cudaflags_extra $(PACKAGES)) CUDA_LIB := $(shell pkg-config --variable=cudalib $(PACKAGES)) CUDA_INCLUDE := $(shell pkg-config --variable=cudainclude $(PACKAGES)) -all: setup main +all: setup ./bin/main setup: mkdir -p bin mkdir -p deps + cd deps/petsc && ./configure + cd deps/petsc && make print: @echo ====== PETSc ====== diff --git a/README.md b/README.md index 6abe989..00d0730 100644 --- a/README.md +++ b/README.md @@ -7,14 +7,18 @@ Metodo di Arnoldi per autovalori utilizzando PETSc. ```bash $ git submodule init $ git submodule update +``` + +Il comando seguente compila anche tutte le dipendenze (solo PETSc per ora) -$ cd deps/petsc -$ ./configure +```bash $ make ``` ## Compile +Per compilare solo il `main` del progetto basta usare il seguente comando + ```bash -$ make all -``` \ No newline at end of file +$ make ./bin/main +```