4 This file is processed by the bin/SConsDoc.py module.
5 See its __doc__ string for a discussion of the format.
9 Set construction variables for generic POSIX Fortran compilers.
30 The default Fortran compiler
31 for all versions of Fortran.
35 <cvar name="FORTRANCOM">
37 The command line used to compile a Fortran source file to an object file.
38 By default, any options specified
39 in the &cv-link-FORTRANFLAGS;,
41 &cv-link-_CPPDEFFLAGS;,
42 &cv-link-_FORTRANMODFLAG;, and
43 &cv-link-_FORTRANINCFLAGS; construction variables
44 are included on this command line.
48 <cvar name="FORTRANCOMSTR">
50 The string displayed when a Fortran source file
51 is compiled to an object file.
52 If this is not set, then &cv-link-FORTRANCOM;
53 (the command line) is displayed.
57 <cvar name="FORTRANFLAGS">
59 General user-specified options that are passed to the Fortran compiler.
60 Note that this variable does
61 <emphasis>not</emphasis>
64 (or similar) include or module search path options
65 that scons generates automatically from &cv-link-FORTRANPATH;.
67 &cv-link-_FORTRANINCFLAGS; and &cv-link-_FORTRANMODFLAG;,
69 for the variables that expand those options.
73 <cvar name="_FORTRANINCFLAGS">
75 An automatically-generated construction variable
76 containing the Fortran compiler command-line options
77 for specifying directories to be searched for include
78 files and module files.
79 The value of &cv-link-_FORTRANINCFLAGS; is created
80 by prepending/appending &cv-link-INCPREFIX; and &cv-link-INCSUFFIX;
81 to the beginning and end
82 of each directory in &cv-link-FORTRANPATH;.
86 <cvar name="FORTRANMODDIR">
88 Directory location where the Fortran compiler should place
89 any module files it generates. This variable is empty, by default. Some
90 Fortran compilers will internally append this directory in the search path
91 for module files, as well.
95 <cvar name="FORTRANMODDIRPREFIX">
97 The prefix used to specify a module directory on the Fortran compiler command
99 This will be appended to the beginning of the directory
100 in the &cv-link-FORTRANMODDIR; construction variables
101 when the &cv-link-_FORTRANMODFLAG; variables is automatically generated.
105 <cvar name="FORTRANMODDIRSUFFIX">
107 The suffix used to specify a module directory on the Fortran compiler command
109 This will be appended to the beginning of the directory
110 in the &cv-link-FORTRANMODDIR; construction variables
111 when the &cv-link-_FORTRANMODFLAG; variables is automatically generated.
115 <cvar name="_FORTRANMODFLAG">
117 An automatically-generated construction variable
118 containing the Fortran compiler command-line option
119 for specifying the directory location where the Fortran
120 compiler should place any module files that happen to get
121 generated during compilation.
122 The value of &cv-link-_FORTRANMODFLAG; is created
123 by prepending/appending &cv-link-FORTRANMODDIRPREFIX; and
124 &cv-link-FORTRANMODDIRSUFFIX;
125 to the beginning and end of the directory in &cv-link-FORTRANMODDIR;.
129 <cvar name="FORTRANMODPREFIX">
131 The module file prefix used by the Fortran compiler. SCons assumes that
132 the Fortran compiler follows the quasi-standard naming convention for
134 <filename>module_name.mod</filename>.
135 As a result, this variable is left empty, by default. For situations in
136 which the compiler does not necessarily follow the normal convention,
137 the user may use this variable. Its value will be appended to every
138 module file name as scons attempts to resolve dependencies.
142 <cvar name="FORTRANMODSUFFIX">
144 The module file suffix used by the Fortran compiler. SCons assumes that
145 the Fortran compiler follows the quasi-standard naming convention for
147 <filename>module_name.mod</filename>.
148 As a result, this variable is set to ".mod", by default. For situations
149 in which the compiler does not necessarily follow the normal convention,
150 the user may use this variable. Its value will be appended to every
151 module file name as scons attempts to resolve dependencies.
155 <cvar name="FORTRANPATH">
157 The list of directories that the Fortran compiler will search for
158 include files and (for some compilers) module files. The Fortran implicit
159 dependency scanner will search these directories for include files (but
160 not module files since they are autogenerated and, as such, may not
161 actually exist at the time the scan takes place). Don't explicitly put
162 include directory arguments in FORTRANFLAGS because the result will be
163 non-portable and the directories will not be searched by the dependency
164 scanner. Note: directory names in FORTRANPATH will be looked-up relative
165 to the SConscript directory when they are used in a command. To force
167 to look-up a directory relative to the root of the source tree use #:
170 env = Environment(FORTRANPATH='#/include')
173 The directory look-up can also be forced using the
178 include = Dir('include')
179 env = Environment(FORTRANPATH=include)
182 The directory list will be added to command lines
183 through the automatically-generated
184 &cv-link-_FORTRANINCFLAGS;
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-FORTRANPATH;.
192 Any command lines you define that need
193 the FORTRANPATH directory list should
194 include &cv-link-_FORTRANINCFLAGS;:
197 env = Environment(FORTRANCOM="my_compiler $_FORTRANINCFLAGS -c -o $TARGET $SOURCE")
202 <cvar name="FORTRANPPCOM">
204 The command line used to compile a Fortran source file to an object file
205 after first running the file through the C preprocessor.
206 By default, any options specified in the &cv-link-FORTRANFLAGS;,
208 &cv-link-_CPPDEFFLAGS;,
209 &cv-link-_FORTRANMODFLAG;, and
210 &cv-link-_FORTRANINCFLAGS;
211 construction variables are included on this command line.
215 <cvar name="FORTRANPPCOMSTR">
217 The string displayed when a Fortran source file
218 is compiled to an object file
219 after first running the file throught the C preprocessor.
220 If this is not set, then &cv-link-FORTRANPPCOM;
221 (the command line) is displayed.
225 <cvar name="FORTRANSUFFIXES">
227 The list of suffixes of files that will be scanned
228 for Fortran implicit dependencies
229 (INCLUDE lines and USE statements).
233 [".f", ".F", ".for", ".FOR", ".ftn", ".FTN", ".fpp", ".FPP",
234 ".f77", ".F77", ".f90", ".F90", ".f95", ".F95"]
239 <cvar name="SHFORTRAN">
241 The default Fortran compiler used for generating shared-library objects.
245 <cvar name="SHFORTRANCOM">
247 The command line used to compile a Fortran source file
248 to a shared-library object file.
252 <cvar name="SHFORTRANCOMSTR">
254 The string displayed when a Fortran source file
255 is compiled to a shared-library object file.
256 If this is not set, then &cv-link-SHFORTRANCOM;
257 (the command line) is displayed.
261 <cvar name="SHFORTRANFLAGS">
263 Options that are passed to the Fortran compiler
264 to generate shared-library objects.
268 <cvar name="SHFORTRANPPCOM">
270 The command line used to compile a Fortran source file to a
271 shared-library object file
272 after first running the file through the C preprocessor.
273 Any options specified
274 in the &cv-link-SHFORTRANFLAGS; and
275 &cv-link-CPPFLAGS; construction variables
276 are included on this command line.
280 <cvar name="SHFORTRANPPCOMSTR">
282 The string displayed when a Fortran source file
283 is compiled to a shared-library object file
284 after first running the file throught the C preprocessor.
285 If this is not set, then &cv-link-SHFORTRANPPCOM;
286 (the command line) is displayed.