forked from AMReX-Codes/amrex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GNUmakefile.in
59 lines (49 loc) · 1.32 KB
/
GNUmakefile.in
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
58
59
AMREX_HOME := $(shell pwd)
include $(AMREX_HOME)/Tools/GNUMake/Make.defs
ifeq ($(USE_CUDA),TRUE)
ALLOW_DIFFERENT_COMP = TRUE
endif
Pdirs := Base AmrCore Amr Boundary
ifeq ($(USE_PARTICLES),TRUE)
Pdirs += Particle
ifeq ($(USE_FORTRAN_INTERFACE),TRUE)
Pdirs += F_Interfaces/Particle
endif
endif
ifeq ($(USE_FORTRAN_INTERFACE),TRUE)
Pdirs += F_Interfaces/Base F_Interfaces/Octree F_Interfaces/AmrCore
endif
ifeq ($(USE_LINEAR_SOLVERS),TRUE)
Pdirs += LinearSolvers/MLMG LinearSolvers/Projections
ifeq ($(USE_FORTRAN_INTERFACE),TRUE)
Pdirs += F_Interfaces/LinearSolvers
endif
endif
ifeq ($(USE_EB),TRUE)
Pdirs += EB
endif
ifeq ($(USE_HYPRE),TRUE)
ifeq ($(USE_LINEAR_SOLVERS),TRUE)
Pdirs += Extern/HYPRE
endif
endif
ifeq ($(USE_PETSC),TRUE)
ifeq ($(USE_LINEAR_SOLVERS),TRUE)
Pdirs += Extern/PETSc
endif
endif
ifeq ($(USE_SENSEI_INSITU),TRUE)
Pdirs += Extern/SENSEI
endif
Ppack := $(foreach dir, $(Pdirs), $(AMREX_HOME)/Src/$(dir)/Make.package)
include $(Ppack)
all: $(amrexlib)
@echo SUCCESS
.PHONY: distclean install uninstall
distclean: realclean
$(SILENT) $(RM) GNUmakefile
install: install_lib install_headers install_fortran_modules install_pkg_config
uninstall:
@echo Uninstalling...
$(SILENT) $(RM) -r $(AMREX_INSTALL_DIR)
include $(AMREX_HOME)/Tools/GNUMake/Make.rules