forked from AMReX-Codes/amrex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GNUmakefile.in
71 lines (60 loc) · 1.56 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
60
61
62
63
64
65
66
67
68
69
70
71
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
ifeq ($(DIM),3)
Pdirs += LinearSolvers/OpenBC
endif
ifeq ($(USE_FORTRAN_INTERFACE),TRUE)
Pdirs += F_Interfaces/LinearSolvers
endif
endif
ifeq ($(USE_FFT),TRUE)
Pdirs += FFT
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
ifeq ($(USE_SUNDIALS),TRUE)
Pdirs += Extern/SUNDIALS
endif
ifeq ($(USE_BITTREE),TRUE)
Pdirs += Extern/Bittree
endif
Ppack := $(foreach dir, $(Pdirs), $(AMREX_HOME)/Src/$(dir)/Make.package)
include $(Ppack)
Pdirs += Base/Parser
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: uninstall_lib uninstall_headers uninstall_fortran_modules uninstall_pkg_config distclean
include $(AMREX_HOME)/Tools/GNUMake/Make.rules