3 SPDX-FileCopyrightText: Copyright The SCons Foundation (https://scons.org)
4 SPDX-License-Identifier: MIT
5 SPDX-FileType: DOCUMENTATION
7 This file is processed by the bin/SConsDoc.py module.
11 <!ENTITY % scons SYSTEM '../../doc/scons.mod'>
13 <!ENTITY % builders-mod SYSTEM '../../doc/generated/builders.mod'>
15 <!ENTITY % functions-mod SYSTEM '../../doc/generated/functions.mod'>
17 <!ENTITY % tools-mod SYSTEM '../../doc/generated/tools.mod'>
19 <!ENTITY % variables-mod SYSTEM '../../doc/generated/variables.mod'>
23 <sconsdoc xmlns="http://www.scons.org/dbxsd/v1.0"
24 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25 xsi:schemaLocation="http://www.scons.org/dbxsd/v1.0 http://www.scons.org/dbxsd/v1.0/scons.xsd">
30 Set construction variables for generic POSIX Fortran 90 compilers.
39 <item>SHF90FLAGS</item>
41 <item>SHF90PPCOM</item>
42 <item>_F90INCFLAGS</item>
45 <item>F90COMSTR</item>
46 <item>F90PPCOMSTR</item>
47 <item>SHF90COMSTR</item>
48 <item>SHF90PPCOMSTR</item>
49 <item>FORTRANCOMMONFLAGS</item>
56 The Fortran 90 compiler.
57 You should normally set the &cv-link-FORTRAN; variable,
58 which specifies the default Fortran compiler
59 for all Fortran versions.
60 You only need to set &cv-link-F90; if you need to use a specific compiler
61 or compiler version for Fortran 90 files.
69 The command line used to compile a Fortran 90 source file to an object file.
70 You only need to set &cv-link-F90COM; if you need to use a specific
71 command line for Fortran 90 files.
72 You should normally set the &cv-link-FORTRANCOM; variable,
73 which specifies the default command line
74 for all Fortran versions.
79 <cvar name="F90COMSTR">
82 If set, the string displayed when a Fortran 90 source file
83 is compiled to an object file.
84 If not set, then &cv-link-F90COM; or &cv-link-FORTRANCOM;
85 (the command line) is displayed.
90 <cvar name="F90FILESUFFIXES">
93 The list of file extensions for which the F90 dialect will be used. By
94 default, this is <literal>['.f90']</literal>
99 <cvar name="F90PPFILESUFFIXES">
102 The list of file extensions for which the compilation + preprocessor pass for
103 F90 dialect will be used. By default, this is empty.
108 <cvar name="F90FLAGS">
111 General user-specified options that are passed to the Fortran 90 compiler.
112 Note that this variable does
113 <emphasis>not</emphasis>
116 (or similar) include search path options
117 that scons generates automatically from &cv-link-F90PATH;.
119 &cv-link-_F90INCFLAGS;
121 for the variable that expands to those options.
122 You only need to set &cv-link-F90FLAGS; if you need to define specific
123 user options for Fortran 90 files.
124 You should normally set the &cv-link-FORTRANFLAGS; variable,
125 which specifies the user-specified options
126 passed to the default Fortran compiler
127 for all Fortran versions.
132 <cvar name="_F90INCFLAGS">
135 An automatically-generated construction variable
136 containing the Fortran 90 compiler command-line options
137 for specifying directories to be searched for include files.
138 The value of &cv-link-_F90INCFLAGS; is created
139 by appending &cv-link-INCPREFIX; and &cv-link-INCSUFFIX;
140 to the beginning and end
141 of each directory in &cv-link-F90PATH;.
146 <cvar name="F90PATH">
149 The list of directories that the Fortran 90 compiler will search for include
150 directories. The implicit dependency scanner will search these
151 directories for include files. Don't explicitly put include directory
152 arguments in &cv-link-F90FLAGS; because the result will be non-portable
153 and the directories will not be searched by the dependency scanner. Note:
154 directory names in &cv-link-F90PATH; will be looked-up relative to the SConscript
155 directory when they are used in a command. To force
157 to lookup a directory relative to the root of the source tree, use #:
158 You only need to set &cv-link-F90PATH; if you need to define a specific
159 include path for Fortran 90 files.
160 You should normally set the &cv-link-FORTRANPATH; variable,
161 which specifies the include path
162 for the default Fortran compiler
163 for all Fortran versions.
167 env = Environment(F90PATH='#/include')
171 The directory lookup can also be forced using the
177 include = Dir('include')
178 env = Environment(F90PATH=include)
182 The directory list will be added to command lines
183 through the automatically-generated
184 &cv-link-_F90INCFLAGS;
185 construction variable,
186 which is constructed by
187 appending the values of the
188 &cv-link-INCPREFIX; and &cv-link-INCSUFFIX;
189 construction variables
190 to the beginning and end
191 of each directory in &cv-link-F90PATH;.
192 Any command lines you define that need
193 the F90PATH directory list should
194 include &cv-link-_F90INCFLAGS;:
198 env = Environment(F90COM="my_compiler $_F90INCFLAGS -c -o $TARGET $SOURCE")
203 <cvar name="F90PPCOM">
206 The command line used to compile a Fortran 90 source file to an object file
207 after first running the file through the C preprocessor.
208 Any options specified in the &cv-link-F90FLAGS; and &cv-link-CPPFLAGS; construction variables
209 are included on this command line.
210 You only need to set &cv-link-F90PPCOM; if you need to use a specific
211 C-preprocessor command line for Fortran 90 files.
212 You should normally set the &cv-link-FORTRANPPCOM; variable,
213 which specifies the default C-preprocessor command line
214 for all Fortran versions.
219 <cvar name="F90PPCOMSTR">
222 If set, the string displayed when a Fortran 90 source file
223 is compiled after first running the file through the C preprocessor.
224 If not set, then &cv-link-F90PPCOM; or &cv-link-FORTRANPPCOM;
225 (the command line) is displayed.
233 The Fortran 90 compiler used for generating shared-library objects.
234 You should normally set the &cv-link-SHFORTRAN; variable,
235 which specifies the default Fortran compiler
236 for all Fortran versions.
237 You only need to set &cv-link-SHF90; if you need to use a specific compiler
238 or compiler version for Fortran 90 files.
243 <cvar name="SHF90COM">
246 The command line used to compile a Fortran 90 source file
247 to a shared-library object file.
248 You only need to set &cv-link-SHF90COM; if you need to use a specific
249 command line for Fortran 90 files.
250 You should normally set the &cv-link-SHFORTRANCOM; variable,
251 which specifies the default command line
252 for all Fortran versions.
257 <cvar name="SHF90COMSTR">
260 If set, the string displayed when a Fortran 90 source file
261 is compiled to a shared-library object file.
262 If not set, then &cv-link-SHF90COM; or &cv-link-SHFORTRANCOM;
263 (the command line) is displayed.
268 <cvar name="SHF90FLAGS">
271 Options that are passed to the Fortran 90 compiler
272 to generated shared-library objects.
273 You only need to set &cv-link-SHF90FLAGS; if you need to define specific
274 user options for Fortran 90 files.
275 You should normally set the &cv-link-FORTRANCOMMONFLAGS; variable,
276 which specifies the user-specified options
277 passed to the default Fortran compiler
278 for all Fortran versions.
283 <cvar name="SHF90PPCOM">
286 The command line used to compile a Fortran 90 source file to a
287 shared-library object file
288 after first running the file through the C preprocessor.
289 Any options specified in the &cv-link-SHF90FLAGS; and &cv-link-CPPFLAGS; construction variables
290 are included on this command line.
291 You only need to set &cv-link-SHF90PPCOM; if you need to use a specific
292 C-preprocessor command line for Fortran 90 files.
293 You should normally set the &cv-link-SHFORTRANPPCOM; variable,
294 which specifies the default C-preprocessor command line
295 for all Fortran versions.
300 <cvar name="SHF90PPCOMSTR">
303 If set, the string displayed when a Fortran 90 source file
304 is compiled to a shared-library object file
305 after first running the file through the C preprocessor.
306 If not set, then &cv-link-SHF90PPCOM; or &cv-link-SHFORTRANPPCOM;
307 (the command line) is displayed.