-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfobos
128 lines (113 loc) · 3.57 KB
/
fobos
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
[modes]
modes = shared-gnu static-gnu shared-gnu-debug static-gnu-debug
shared-gnu-zoo static-gnu-zoo shared-gnu-debug-zoo static-gnu-debug-zoo
[common-variables]
$CSHARED_GNU = -cpp -c -fPIC -frealloc-lhs
$LSHARED = -shared
$CSTATIC_GNU = -cpp -c -frealloc-lhs
$DEBUG_GNU = -O0 -g3 -Warray-bounds -Wcharacter-truncation -Wline-truncation -Wimplicit-interface -Wimplicit-procedure -Wunderflow -fcheck=all -fmodule-private -ffree-line-length-132 -fimplicit-none -fbacktrace -fdump-core -finit-real=nan -std=f2008 -fall-intrinsics
$OPTIMIZE = -O3
# generic
[shared-gnu]
template = template-shared-gnu
build_dir = ./shared/
mklib = shared
[static-gnu]
template = template-static-gnu
build_dir = ./static/
mklib = static
[shared-gnu-debug]
template = template-shared-gnu-debug
build_dir = ./shared/
mklib = shared
[static-gnu-debug]
template = template-static-gnu-debug
build_dir = ./static/
mklib = static
# ZOO
[shared-gnu-zoo]
template = template-shared-gnu
target = zoo.f90
build_dir = ./shared/
output = libzoo.so
mklib = shared
[static-gnu-zoo]
template = template-static-gnu
target = zoo.f90
build_dir = ./static/
output = libzoo.a
mklib = static
[shared-gnu-debug-zoo]
template = template-shared-gnu-debug
target = zoo.f90
build_dir = ./shared/
output = libzoo.so
mklib = shared
[static-gnu-debug-zoo]
template = template-static-gnu-debug
target = zoo.f90
build_dir = ./static/
output = libzoo.a
mklib = static
#templates
[template-shared-gnu]
compiler = gnu
cflags = $CSHARED_GNU $OPTIMIZE
lflags = $LSHARED $OPTIMIZE
mod_dir = ./mod/
obj_dir = ./obj/
src = ./src/
colors = True
quiet = False
log = True
jobs = 10
[template-static-gnu]
compiler = gnu
cflags = $CSTATIC_GNU $OPTIMIZE
mod_dir = ./mod/
obj_dir = ./obj/
src = ./src/
colors = True
quiet = False
log = True
jobs = 10
[template-shared-gnu-debug]
compiler = gnu
cflags = $CSHARED_GNU $DEBUG_GNU
lflags = $LSHARED $DEBUG_GNU
mod_dir = ./mod/
obj_dir = ./obj/
src = ./src/
colors = True
quiet = False
log = True
jobs = 10
[template-static-gnu-debug]
compiler = gnu
cflags = $CSTATIC_GNU $DEBUG_GNU
lflags = $DEBUG_GNU
mod_dir = ./mod/
obj_dir = ./obj/
src = ./src/
colors = True
quiet = False
log = True
jobs = 10
#rules
[rule-makeall]
help = make all libraries
rule_1 = FoBiS.py build -mode static-gnu -t src/BeFoR64/befor64.F90 -o libbefor64.a
rule_2 = FoBiS.py build -mode static-gnu -t src/FACE/face.F90 -o libface.a
rule_3 = FoBiS.py build -mode static-gnu -t src/FiNeR/finer.f90 -o libfiner.a
rule_4 = FoBiS.py build -mode static-gnu -t src/FITTER/fitter.f90 -o libfitter.a
rule_5 = FoBiS.py build -mode static-gnu -t src/FLAP/flap.f90 -o libflap.a
rule_6 = FoBiS.py build -mode static-gnu -t src/FLOw/flow.f90 -o libflow.a
rule_7 = FoBiS.py build -mode static-gnu -t src/FOODIE/foodie.f90 -o libfoodie.a
rule_8 = FoBiS.py build -mode static-gnu -t src/forbear/forbear.f90 -o libforbear.a
rule_9 = FoBiS.py build -mode static-gnu -t src/FORESEER/foreseer.f90 -o libforeseer.a
rule_10 = FoBiS.py build -mode static-gnu -t src/FoXy/foxy.f90 -o libfoxy.a
rule_11 = FoBiS.py build -mode static-gnu -t src/PENF/penf.F90 -o libpenf.a
rule_12 = FoBiS.py build -mode static-gnu -t src/StringiFor/stringifor.F90 -o libstringifor.a
rule_13 = FoBiS.py build -mode static-gnu -t src/VecFor/vecfor.F90 -o libvecfor.a
rule_14 = FoBiS.py build -mode static-gnu -t src/VTKFortran/vtk_fortran.f90 -o libvtkfortran.a
rule_15 = FoBiS.py build -mode static-gnu -t src/WenOOF/wenoof.F90 -o libwenoof.a