Skip to content

Commit aa03aed

Browse files
committed
Added a fobis file.
Fixes #310
1 parent aaf2c84 commit aa03aed

File tree

1 file changed

+144
-0
lines changed

1 file changed

+144
-0
lines changed

json-fortran.fobis

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
[modes]
2+
modes = static-gnu static-gnu-debug
3+
static-intel static-intel-debug
4+
shared-gnu shared-gnu-debug
5+
shared-intel shared-intel-debug
6+
tests-gnu tests-gnu-debug
7+
tests-intel tests-intel-debug
8+
9+
[common-variables]
10+
$MOD_FILE = json_module.F90
11+
$FORD_FILE = json-fortran.md
12+
$STATIC_LIB = libjsonfortran.a
13+
$SHARED_LIB = libjsonfortran.so
14+
$OPTIMIZE = -O2
15+
$CSTATIC_GNU = -c -fbacktrace -Wall -Wextra -Wno-maybe-uninitialized -Wno-unused-function -pedantic -std=f2008ts
16+
$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=f2008ts -fall-intrinsics
17+
$CSTATIC_INT = -c -std15
18+
$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 -std15
19+
$EXCLUDE_DIRS = ./src/tests/introspection
20+
./visual_studio/jsonfortrantest
21+
22+
# modes templates
23+
[template-static]
24+
cflags_heritage = True
25+
build_dir = ./lib/
26+
mod_dir = ./mod/
27+
obj_dir = ./obj/
28+
src = ./src/
29+
colors = True
30+
quiet = False
31+
log = False
32+
jobs = 2
33+
mklib = static
34+
target = $MOD_FILE
35+
output = $STATIC_LIB
36+
exclude_dirs = $EXCLUDE_DIRS
37+
38+
[template-shared]
39+
cflags_heritage = True
40+
build_dir = ./lib/
41+
mod_dir = ./mod/
42+
obj_dir = ./obj/
43+
src = ./src/
44+
colors = True
45+
quiet = False
46+
log = False
47+
jobs = 2
48+
mklib = shared
49+
target = $MOD_FILE
50+
output = $SHARED_LIB
51+
exclude_dirs = $EXCLUDE_DIRS
52+
53+
[template-tests]
54+
cflags_heritage = True
55+
build_dir = ./bin/
56+
mod_dir = ./mod/
57+
obj_dir = ./obj/
58+
src = ./src/
59+
colors = True
60+
quiet = False
61+
log = False
62+
jobs = 2
63+
exclude_dirs = $EXCLUDE_DIRS
64+
65+
# main modes
66+
67+
# library
68+
[static-gnu]
69+
description = Build library with GNU gfortran by optimized-static flags
70+
compiler = gnu
71+
cflags = $CSTATIC_GNU $OPTIMIZE
72+
template = template-static
73+
74+
[static-gnu-debug]
75+
description = Build library with GNU gfortran by debug-static flags
76+
compiler = gnu
77+
cflags = $CSTATIC_GNU $DEBUG_GNU
78+
template = template-static
79+
80+
[static-intel]
81+
description = Build library with Intel Fortran by optimized-static flags
82+
compiler = intel
83+
cflags = $CSTATIC_INT $OPTIMIZE
84+
template = template-static
85+
86+
[static-intel-debug]
87+
description = Build library with Intel Fortran by debug-static flags
88+
compiler = intel
89+
cflags = $CSTATIC_INT $DEBUG_INT
90+
template = template-static
91+
92+
[shared-gnu]
93+
description = Build library with GNU gfortran by optimized-shared flags
94+
compiler = gnu
95+
cflags = $CSTATIC_GNU $OPTIMIZE
96+
template = template-shared
97+
98+
[shared-gnu-debug]
99+
description = Build library with GNU gfortran by debug-shared flags
100+
compiler = gnu
101+
cflags = $CSTATIC_GNU $DEBUG_GNU
102+
template = template-shared
103+
104+
[shared-intel]
105+
description = Build library with Intel Fortran by optimized-shared flags
106+
compiler = intel
107+
cflags = $CSTATIC_INT $OPTIMIZE
108+
template = template-shared
109+
110+
[shared-intel-debug]
111+
description = Build library with Intel Fortran by debug-shared flags
112+
compiler = intel
113+
cflags = $CSTATIC_INT $DEBUG_INT
114+
template = template-shared
115+
116+
# test programs
117+
[tests-gnu]
118+
description = Build all tests with GNU gfortran by optimized-static flags
119+
compiler = gnu
120+
cflags = $CSTATIC_GNU $OPTIMIZE
121+
template = template-tests
122+
123+
[tests-gnu-debug]
124+
description = Build all tests with GNU gfortran by debug-static flags
125+
compiler = gnu
126+
cflags = $CSTATIC_GNU $DEBUG_GNU
127+
template = template-tests
128+
129+
[tests-intel]
130+
description = Build all tests with Intel Fortran by optimized-static flags
131+
compiler = intel
132+
cflags = $CSTATIC_INT $OPTIMIZE
133+
template = template-tests
134+
135+
[tests-intel-debug]
136+
description = Build all tests with Intel Fortran by debug-static flags
137+
compiler = intel
138+
cflags = $CSTATIC_INT $DEBUG_INT
139+
template = template-tests
140+
141+
# auxiliary rules
142+
[rule-makedoc]
143+
help = Rule for building documentation from source files
144+
rule_1 = ford $FORD_FILE

0 commit comments

Comments
 (0)