-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile.in
78 lines (58 loc) · 3.24 KB
/
Makefile.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
72
73
74
75
76
77
78
# Variable check
# CXXFLAGS = @CXXFLAGS@
# INCLUDEFLAGS = @INCLUDEFLAGS@
# WARNINGFLAGS = @WARNINGFLAGS@
# STATICLIBS = @STATICLIBS@
# LIBS = @LIBS@
# LDFLAGS = @LDFLAGS@
# PETSC_DIR = @PETSC_DIR@
# SLEPC_DIR = @SLEPC_DIR@
# PETSC_ARCH_REAL = @PETSC_ARCH_REAL@
# PETSC_ARCH_COMPLEX = @PETSC_ARCH_COMPLEX@
# PETSC_INCLUDE_FILE_GENERIC = @PETSC_INCLUDE_FILE_GENERIC@
# SLEPC_INCLUDE_FILE_GENERIC = @SLEPC_INCLUDE_FILE_GENERIC@
package-parts=common atmosphere libmodes libpe libbroadband modess wmod modbb epade_pe gfpe
# Build everything
all: clean $(package-parts)
# build general utility libraries
common:
$(MAKE) -C src/common all PETSC_ARCH=@PETSC_ARCH_REAL@ PETSC_DIR=@PETSC_DIR@ SLEPC_DIR=@SLEPC_DIR@
# build atmospheric utility libraries
atmosphere:
$(MAKE) -C src/atmosphere all PETSC_ARCH=@PETSC_ARCH_REAL@ PETSC_DIR=@PETSC_DIR@ SLEPC_DIR=@SLEPC_DIR@
libmodes:
$(MAKE) -C src/libmodes all PETSC_ARCH=@PETSC_ARCH_REAL@ PETSC_DIR=@PETSC_DIR@ SLEPC_DIR=@SLEPC_DIR@
#libcmodes:
# $(MAKE) -C src/libcmodes all PETSC_ARCH=@PETSC_ARCH_COMPLEX@ PETSC_DIR=@PETSC_DIR@ SLEPC_DIR=@SLEPC_DIR@
libbroadband:
$(MAKE) -C src/libbroadband all PETSC_ARCH=@PETSC_ARCH_REAL@ PETSC_DIR=@PETSC_DIR@ SLEPC_DIR=@SLEPC_DIR@
libpe:
$(MAKE) -C src/libpe all PETSC_ARCH=@PETSC_ARCH_COMPLEX@ PETSC_DIR=@PETSC_DIR@ SLEPC_DIR=@SLEPC_DIR@
# Normal modes, single frequency, effective sound speed approximation
modess:
$(MAKE) -C src/modess all PETSC_ARCH=@PETSC_ARCH_REAL@ PETSC_DIR=@PETSC_DIR@ SLEPC_DIR=@SLEPC_DIR@
# Normal modes, broadband
modbb:
$(MAKE) -C src/modbb all PETSC_ARCH=@PETSC_ARCH_REAL@ PETSC_DIR=@PETSC_DIR@ SLEPC_DIR=@SLEPC_DIR@
# High-angle high-mach parabolic equation
epade_pe:
$(MAKE) -C src/epade_pe all PETSC_ARCH=@PETSC_ARCH_COMPLEX@ PETSC_DIR=@PETSC_DIR@ SLEPC_DIR=@SLEPC_DIR@
# Green's function parabolic equation
gfpe:
$(MAKE) -C src/gfpe all PETSC_ARCH=@PETSC_ARCH_COMPLEX@ PETSC_DIR=@PETSC_DIR@ SLEPC_DIR=@SLEPC_DIR@
# Wide-angle high-mach number normal modes, single frequency
wmod:
$(MAKE) -C src/wmod all PETSC_ARCH=@PETSC_ARCH_REAL@ PETSC_DIR=@PETSC_DIR@ SLEPC_DIR=@SLEPC_DIR@
# clean everything up
clean:
-$(MAKE) -C src/common clean PETSC_ARCH=@PETSC_ARCH_REAL@ PETSC_DIR=@PETSC_DIR@ SLEPC_DIR=@SLEPC_DIR@
-$(MAKE) -C src/atmosphere clean PETSC_ARCH=@PETSC_ARCH_REAL@ PETSC_DIR=@PETSC_DIR@ SLEPC_DIR=@SLEPC_DIR@
-$(MAKE) -C src/libmodes clean PETSC_ARCH=@PETSC_ARCH_REAL@ PETSC_DIR=@PETSC_DIR@ SLEPC_DIR=@SLEPC_DIR@
-$(MAKE) -C src/libbroadband clean PETSC_ARCH=@PETSC_ARCH_REAL@ PETSC_DIR=@PETSC_DIR@ SLEPC_DIR=@SLEPC_DIR@
-$(MAKE) -C src/libpe clean PETSC_ARCH=@PETSC_ARCH_COMPLEX@ PETSC_DIR=@PETSC_DIR@ SLEPC_DIR=@SLEPC_DIR@
-$(MAKE) -C src/modess clean PETSC_ARCH=@PETSC_ARCH_REAL@ PETSC_DIR=@PETSC_DIR@ SLEPC_DIR=@SLEPC_DIR@
-$(MAKE) -C src/modbb clean PETSC_ARCH=@PETSC_ARCH_REAL@ PETSC_DIR=@PETSC_DIR@ SLEPC_DIR=@SLEPC_DIR@
-$(MAKE) -C src/epade_pe clean PETSC_ARCH=@PETSC_ARCH_REAL@ PETSC_DIR=@PETSC_DIR@ SLEPC_DIR=@SLEPC_DIR@
-$(MAKE) -C src/wmod clean PETSC_ARCH=@PETSC_ARCH_REAL@ PETSC_DIR=@PETSC_DIR@ SLEPC_DIR=@SLEPC_DIR@
-rm bin/ModBB bin/Modess bin/ePape bin/WMod lib/libatmosphere.a lib/libcommon.a lib/libmodes.a lib/libbroadband.a lib/libpe.a
.PHONY: common atmosphere libmodes libpe libbroadband modess modbb epape_pe wmod clean