3 Copyright The SCons Foundation
5 This file is processed by the bin/SConsDoc.py module.
6 See its __doc__ string for a discussion of the format.
10 <!ENTITY % scons SYSTEM '../../doc/scons.mod'>
12 <!ENTITY % builders-mod SYSTEM '../../doc/generated/builders.mod'>
14 <!ENTITY % functions-mod SYSTEM '../../doc/generated/functions.mod'>
16 <!ENTITY % tools-mod SYSTEM '../../doc/generated/tools.mod'>
18 <!ENTITY % variables-mod SYSTEM '../../doc/generated/variables.mod'>
22 <sconsdoc xmlns="http://www.scons.org/dbxsd/v1.0"
23 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24 xsi:schemaLocation="http://www.scons.org/dbxsd/v1.0 http://www.scons.org/dbxsd/v1.0/scons.xsd">
29 Set construction variables for generic POSIX Fortran 03 compilers.
38 <item>SHF03FLAGS</item>
40 <item>SHF03PPCOM</item>
41 <item>_F03INCFLAGS</item>
44 <item>F03COMSTR</item>
45 <item>F03PPCOMSTR</item>
46 <item>SHF03COMSTR</item>
47 <item>SHF03PPCOMSTR</item>
48 <item>FORTRANCOMMONFLAGS</item>
55 The Fortran 03 compiler.
56 You should normally set the &cv-link-FORTRAN; variable,
57 which specifies the default Fortran compiler
58 for all Fortran versions.
59 You only need to set &cv-link-F03; if you need to use a specific compiler
60 or compiler version for Fortran 03 files.
68 The command line used to compile a Fortran 03 source file to an object file.
69 You only need to set &cv-link-F03COM; if you need to use a specific
70 command line for Fortran 03 files.
71 You should normally set the &cv-link-FORTRANCOM; variable,
72 which specifies the default command line
73 for all Fortran versions.
78 <cvar name="F03COMSTR">
81 If set, the string displayed when a Fortran 03 source file
82 is compiled to an object file.
83 If not set, then &cv-link-F03COM; or &cv-link-FORTRANCOM;
84 (the command line) is displayed.
89 <cvar name="F03FILESUFFIXES">
92 The list of file extensions for which the F03 dialect will be used. By
93 default, this is <literal>['.f03']</literal>
98 <cvar name="F03PPFILESUFFIXES">
101 The list of file extensions for which the compilation + preprocessor pass for
102 F03 dialect will be used. By default, this is empty.
107 <cvar name="F03FLAGS">
110 General user-specified options that are passed to the Fortran 03 compiler.
111 Note that this variable does
112 <emphasis>not</emphasis>
115 (or similar) include search path options
116 that scons generates automatically from &cv-link-F03PATH;.
118 &cv-link-_F03INCFLAGS;
120 for the variable that expands to those options.
121 You only need to set &cv-link-F03FLAGS; if you need to define specific
122 user options for Fortran 03 files.
123 You should normally set the &cv-link-FORTRANFLAGS; variable,
124 which specifies the user-specified options
125 passed to the default Fortran compiler
126 for all Fortran versions.
131 <cvar name="_F03INCFLAGS">
134 An automatically-generated construction variable
135 containing the Fortran 03 compiler command-line options
136 for specifying directories to be searched for include files.
137 The value of &cv-link-_F03INCFLAGS; is created
138 by appending &cv-link-INCPREFIX; and &cv-link-INCSUFFIX;
139 to the beginning and end
140 of each directory in &cv-link-F03PATH;.
145 <cvar name="F03PATH">
148 The list of directories that the Fortran 03 compiler will search for include
149 directories. The implicit dependency scanner will search these
150 directories for include files. Don't explicitly put include directory
151 arguments in &cv-link-F03FLAGS; because the result will be non-portable
152 and the directories will not be searched by the dependency scanner. Note:
153 directory names in &cv-link-F03PATH; will be looked-up relative to the SConscript
154 directory when they are used in a command. To force
156 to look-up a directory relative to the root of the source tree use #:
157 You only need to set &cv-link-F03PATH; if you need to define a specific
158 include path for Fortran 03 files.
159 You should normally set the &cv-link-FORTRANPATH; variable,
160 which specifies the include path
161 for the default Fortran compiler
162 for all Fortran versions.
166 env = Environment(F03PATH='#/include')
170 The directory look-up can also be forced using the
176 include = Dir('include')
177 env = Environment(F03PATH=include)
181 The directory list will be added to command lines
182 through the automatically-generated
183 &cv-link-_F03INCFLAGS;
184 construction variable,
185 which is constructed by
186 appending the values of the
187 &cv-link-INCPREFIX; and &cv-link-INCSUFFIX;
188 construction variables
189 to the beginning and end
190 of each directory in &cv-link-F03PATH;.
191 Any command lines you define that need
192 the F03PATH directory list should
193 include &cv-link-_F03INCFLAGS;:
197 env = Environment(F03COM="my_compiler $_F03INCFLAGS -c -o $TARGET $SOURCE")
202 <cvar name="F03PPCOM">
205 The command line used to compile a Fortran 03 source file to an object file
206 after first running the file through the C preprocessor.
207 Any options specified in the &cv-link-F03FLAGS; and &cv-link-CPPFLAGS; construction variables
208 are included on this command line.
209 You only need to set &cv-link-F03PPCOM; if you need to use a specific
210 C-preprocessor command line for Fortran 03 files.
211 You should normally set the &cv-link-FORTRANPPCOM; variable,
212 which specifies the default C-preprocessor command line
213 for all Fortran versions.
218 <cvar name="F03PPCOMSTR">
221 If set, the string displayed when a Fortran 03 source file
222 is compiled to an object file
223 after first running the file through the C preprocessor.
224 If not set, then &cv-link-F03PPCOM; or &cv-link-FORTRANPPCOM;
225 (the command line) is displayed.
233 The Fortran 03 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-SHF03; if you need to use a specific compiler
238 or compiler version for Fortran 03 files.
243 <cvar name="SHF03COM">
246 The command line used to compile a Fortran 03 source file
247 to a shared-library object file.
248 You only need to set &cv-link-SHF03COM; if you need to use a specific
249 command line for Fortran 03 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="SHF03COMSTR">
260 If set, the string displayed when a Fortran 03 source file
261 is compiled to a shared-library object file.
262 If not set, then &cv-link-SHF03COM; or &cv-link-SHFORTRANCOM;
263 (the command line) is displayed.
268 <cvar name="SHF03FLAGS">
271 Options that are passed to the Fortran 03 compiler
272 to generated shared-library objects.
273 You only need to set &cv-link-SHF03FLAGS; if you need to define specific
274 user options for Fortran 03 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="SHF03PPCOM">
286 The command line used to compile a Fortran 03 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-SHF03FLAGS; and &cv-link-CPPFLAGS; construction variables
290 are included on this command line.
291 You only need to set &cv-link-SHF03PPCOM; if you need to use a specific
292 C-preprocessor command line for Fortran 03 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="SHF03PPCOMSTR">
303 If set, the string displayed when a Fortran 03 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-SHF03PPCOM; or &cv-link-SHFORTRANPPCOM;
307 (the command line) is displayed.