forked from AMReX-Codes/amrex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGNUmakefile.in
38 lines (28 loc) · 960 Bytes
/
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
AMREX_HOME := $(shell pwd)
include $(AMREX_HOME)/Tools/GNUMake/Make.defs
Pdirs := Base AmrCore Amr Boundary
ifeq ($(USE_PARTICLES),TRUE)
Pdirs += Particle
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/C_CellMG LinearSolvers/C_to_F_MG
endif
Ppack := $(foreach dir, $(Pdirs), $(AMREX_HOME)/Src/$(dir)/Make.package)
include $(Ppack)
ifeq ($(USE_LINEAR_SOLVERS),TRUE)
include $(AMREX_HOME)/Src/LinearSolvers/F_MG/FParallelMG.mak
include $(AMREX_HOME)/Src/F_BaseLib/FParallelMG.mak
endif
all: $(amrexlib)
@echo SUCCESS
.PHONY: distclean install uninstall
distclean: realclean
$(SILENT) $(RM) GNUmakefile
install: install_lib install_headers install_fortran_modules
uninstall:
@echo Uninstalling...
$(SILENT) $(RM) -r $(AMREX_INSTALL_DIR)
include $(AMREX_HOME)/Tools/GNUMake/Make.rules