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 90 compilers.
38 <item>SHF90FLAGS</item>
40 <item>SHF90PPCOM</item>
41 <item>_F90INCFLAGS</item>
44 <item>F90COMSTR</item>
45 <item>F90PPCOMSTR</item>
46 <item>SHF90COMSTR</item>
47 <item>SHF90PPCOMSTR</item>
48 <item>FORTRANCOMMONFLAGS</item>
55 The Fortran 90 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-F90; if you need to use a specific compiler
60 or compiler version for Fortran 90 files.
68 The command line used to compile a Fortran 90 source file to an object file.
69 You only need to set &cv-link-F90COM; if you need to use a specific
70 command line for Fortran 90 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="F90COMSTR">
81 If set, the string displayed when a Fortran 90 source file
82 is compiled to an object file.
83 If not set, then &cv-link-F90COM; or &cv-link-FORTRANCOM;
84 (the command line) is displayed.
89 <cvar name="F90FILESUFFIXES">
92 The list of file extensions for which the F90 dialect will be used. By
93 default, this is <literal>['.f90']</literal>
98 <cvar name="F90PPFILESUFFIXES">
101 The list of file extensions for which the compilation + preprocessor pass for
102 F90 dialect will be used. By default, this is empty.
107 <cvar name="F90FLAGS">
110 General user-specified options that are passed to the Fortran 90 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-F90PATH;.
118 &cv-link-_F90INCFLAGS;
120 for the variable that expands to those options.
121 You only need to set &cv-link-F90FLAGS; if you need to define specific
122 user options for Fortran 90 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="_F90INCFLAGS">
134 An automatically-generated construction variable
135 containing the Fortran 90 compiler command-line options
136 for specifying directories to be searched for include files.
137 The value of &cv-link-_F90INCFLAGS; 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-F90PATH;.
145 <cvar name="F90PATH">
148 The list of directories that the Fortran 90 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-F90FLAGS; 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-F90PATH; 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-F90PATH; if you need to define a specific
158 include path for Fortran 90 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(F90PATH='#/include')
170 The directory look-up can also be forced using the
176 include = Dir('include')
177 env = Environment(F90PATH=include)
181 The directory list will be added to command lines
182 through the automatically-generated
183 &cv-link-_F90INCFLAGS;
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-F90PATH;.
191 Any command lines you define that need
192 the F90PATH directory list should
193 include &cv-link-_F90INCFLAGS;:
197 env = Environment(F90COM="my_compiler $_F90INCFLAGS -c -o $TARGET $SOURCE")
202 <cvar name="F90PPCOM">
205 The command line used to compile a Fortran 90 source file to an object file
206 after first running the file through the C preprocessor.
207 Any options specified in the &cv-link-F90FLAGS; and &cv-link-CPPFLAGS; construction variables
208 are included on this command line.
209 You only need to set &cv-link-F90PPCOM; if you need to use a specific
210 C-preprocessor command line for Fortran 90 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="F90PPCOMSTR">
221 If set, the string displayed when a Fortran 90 source file
222 is compiled after first running the file through the C preprocessor.
223 If not set, then &cv-link-F90PPCOM; or &cv-link-FORTRANPPCOM;
224 (the command line) is displayed.
232 The Fortran 90 compiler used for generating shared-library objects.
233 You should normally set the &cv-link-SHFORTRAN; variable,
234 which specifies the default Fortran compiler
235 for all Fortran versions.
236 You only need to set &cv-link-SHF90; if you need to use a specific compiler
237 or compiler version for Fortran 90 files.
242 <cvar name="SHF90COM">
245 The command line used to compile a Fortran 90 source file
246 to a shared-library object file.
247 You only need to set &cv-link-SHF90COM; if you need to use a specific
248 command line for Fortran 90 files.
249 You should normally set the &cv-link-SHFORTRANCOM; variable,
250 which specifies the default command line
251 for all Fortran versions.
256 <cvar name="SHF90COMSTR">
259 If set, the string displayed when a Fortran 90 source file
260 is compiled to a shared-library object file.
261 If not set, then &cv-link-SHF90COM; or &cv-link-SHFORTRANCOM;
262 (the command line) is displayed.
267 <cvar name="SHF90FLAGS">
270 Options that are passed to the Fortran 90 compiler
271 to generated shared-library objects.
272 You only need to set &cv-link-SHF90FLAGS; if you need to define specific
273 user options for Fortran 90 files.
274 You should normally set the &cv-link-FORTRANCOMMONFLAGS; variable,
275 which specifies the user-specified options
276 passed to the default Fortran compiler
277 for all Fortran versions.
282 <cvar name="SHF90PPCOM">
285 The command line used to compile a Fortran 90 source file to a
286 shared-library object file
287 after first running the file through the C preprocessor.
288 Any options specified in the &cv-link-SHF90FLAGS; and &cv-link-CPPFLAGS; construction variables
289 are included on this command line.
290 You only need to set &cv-link-SHF90PPCOM; if you need to use a specific
291 C-preprocessor command line for Fortran 90 files.
292 You should normally set the &cv-link-SHFORTRANPPCOM; variable,
293 which specifies the default C-preprocessor command line
294 for all Fortran versions.
299 <cvar name="SHF90PPCOMSTR">
302 If set, the string displayed when a Fortran 90 source file
303 is compiled to a shared-library object file
304 after first running the file through the C preprocessor.
305 If not set, then &cv-link-SHF90PPCOM; or &cv-link-SHFORTRANPPCOM;
306 (the command line) is displayed.