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 +```