-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathfobos
More file actions
134 lines (118 loc) · 3.96 KB
/
fobos
File metadata and controls
134 lines (118 loc) · 3.96 KB
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
128
129
130
131
132
133
134
[project]
name = FoXy
version = VERSION
summary = Fortran XML parser for poor people
repository = https://github.com/Fortran-FOSS-Programmers/FoXy
website = https://fortran-foss-programmers.github.io/FoXy/
email = stefano.zaghi@gmail.it
authors = Stefano Zaghi
[dependencies]
deps_dir = src/third_party
BeFoR64 = https://github.com/szaghi/BeFoR64
FACE = https://github.com/szaghi/FACE
PENF = https://github.com/szaghi/PENF
StringiFor = https://github.com/szaghi/StringiFor
[modes]
modes = tests-gnu
tests-gnu-debug
tests-intel
tests-intel-debug
[common-variables]
$CSHARED_GNU = -DGNU -cpp -c -fPIC -frealloc-lhs
$CSHARED_INT = -cpp -c -fpic -assume realloc_lhs
$LSHARED = -shared
$CSTATIC_GNU = -DGNU -cpp -c -frealloc-lhs
$CSTATIC_INT = -cpp -c -assume realloc_lhs
$DEBUG_GNU = -DGNU -O0 -g3 -Warray-bounds -Wcharacter-truncation -Wline-truncation -Wimplicit-interface -Wimplicit-procedure -Wunderflow -fmodule-private -ffree-line-length-132 -fimplicit-none -fbacktrace -fdump-core -finit-real=nan -std=f2018 -fall-intrinsics
$DEBUG_INT = -O0 -debug all -check all -warn all -extend-source 132 -traceback -gen-interfaces#-fpe-all=0 -fp-stack-check -fstack-protector-all -ftrapuv -no-ftz -std08
$OPTIMIZE = -O2
$EXDIRS = BeFoR64/src/tests/ FACE/src/tests/ PENF/src/tests/ StringiFor/src/tests/
# main modes
# GNU
[tests-gnu]
template = template-static-gnu
build_dir = exe
[tests-gnu-debug]
template = template-static-gnu-debug
build_dir = exe
# Intel
[tests-intel]
template = template-static-intel
build_dir = exe
[tests-intel-debug]
template = template-static-intel-debug
build_dir = exe
#templates
[template-static-gnu]
compiler = gnu
cflags = $CSTATIC_GNU $OPTIMIZE
cflags_heritage = True
exclude_dirs = $EXDIRS
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
cflags_heritage = True
exclude_dirs = $EXDIRS
mod_dir = ./mod/
obj_dir = ./obj/
src = ./src/
colors = True
quiet = False
log = True
jobs = 10
[template-static-intel]
compiler = intel
cflags = $CSTATIC_INT $OPTIMIZE
lflags = $OPTIMIZE
cflags_heritage = True
exclude_dirs = $EXDIRS
mod_dir = ./mod/
obj_dir = ./obj/
src = ./src/
colors = True
quiet = False
log = True
jobs = 10
[template-static-intel-debug]
compiler = intel
cflags = $CSTATIC_INT $DEBUG_INT
lflags = $DEBUG_INT
cflags_heritage = True
exclude_dirs = $EXDIRS
mod_dir = ./mod/
obj_dir = ./obj/
src = ./src/
colors = True
quiet = False
log = True
jobs = 10
[rule-makedoc]
help = Build documentation with formal + VitePress
rule_1 = formal generate --mirror-sources --diagrams --project docs/ford.md --output docs/api
rule_2 = cd docs && npm ci && npm run docs:build
[rule-deldoc]
help = Delete documentation build artifacts
rule = rm -rf docs/.vitepress/dist/ docs/.vitepress/cache/ docs/api/
[rule-maketar]
help = Rule for making tar archive of the project
rule = tar --xform="s%^%FoXy/%" -czf FoXy.tar.gz *
[rule-makecoverage]
help = Rule for performing coverage analysis
rule_1 = FoBiS.py clean -mode tests-gnu-debug
rule_2 = FoBiS.py build -mode tests-gnu-debug -coverage
rule_3 = ./scripts/run_tests.sh
rule_4 = rm -f exe/obj/befor64* exe/obj/face* exe/obj/penf* exe/obj/stringifor*
rule_5 = ./scripts/compute-coverage.sh
[rule-makecoverage-analysis]
help = Rule for performing coverage analysis and saving reports in markdown
rule_1 = FoBiS.py rule -ex makecoverage
rule_2 = FoBiS.py rule --gcov-analyzer docs/guide/ --gcov-analyzer coverage-analysis
rule_3 = rm -f *.gcov parsed.xml source.xml