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 Sets construction variables for generic POSIX C compilers.
33 <item><!--_CCCOMCOM--></item>
34 <item>FRAMEWORKS</item>
35 <item>FRAMEWORKPATH</item>
42 <item>SHCCFLAGS</item>
44 <item>CPPDEFPREFIX</item>
45 <item>CPPDEFSUFFIX</item>
46 <item>INCPREFIX</item>
47 <item>INCSUFFIX</item>
48 <item>SHOBJSUFFIX</item>
49 <item><!--STATIC_AND_SHARED_OBJECTS_ARE_THE_SAME--></item>
50 <item>CFILESUFFIX</item>
51 <item>CCDEPFLAGS</item>
56 <item>SHCCCOMSTR</item>
71 The command line used to compile a C source file to a (static) object
72 file. Any options specified in the &cv-link-CFLAGS;, &cv-link-CCFLAGS; and
73 &cv-link-CPPFLAGS; construction variables are included on this command line.
74 See also &cv-link-SHCCCOM; for compiling to shared objects.
79 <cvar name="CCCOMSTR">
82 If set, the string displayed when a C source file
83 is compiled to a (static) object file.
84 If not set, then &cv-link-CCCOM; (the command line) is displayed.
85 See also &cv-link-SHCCCOMSTR; for compiling to shared objects.
89 env = Environment(CCCOMSTR = "Compiling static object $TARGET")
97 General options that are passed to the C and C++ compilers.
98 See also &cv-link-SHCCFLAGS; for compiling to shared objects.
106 General options that are passed to the C compiler (C only; not C++).
107 See also &cv-link-SHCFLAGS; for compiling to shared objects.
112 <cvar name="CPPFLAGS">
115 User-specified C preprocessor options.
116 These will be included in any command that uses the C preprocessor,
117 including not just compilation of C and C++ source files
118 via the &cv-link-CCCOM;,
121 &cv-link-SHCXXCOM; command lines,
122 but also the &cv-link-FORTRANPPCOM;,
123 &cv-link-SHFORTRANPPCOM;,
124 &cv-link-F77PPCOM; and
125 &cv-link-SHF77PPCOM; command lines
126 used to compile a Fortran source file,
127 and the &cv-link-ASPPCOM; command line
128 used to assemble an assembly language source file,
129 after first running each file through the C preprocessor.
130 Note that this variable does
131 <emphasis>not</emphasis>
134 (or similar) include search path options
135 that scons generates automatically from &cv-link-CPPPATH;.
136 See &cv-link-_CPPINCFLAGS;, below,
137 for the variable that expands to those options.
142 <cvar name="CPPSUFFIXES">
145 The list of suffixes of files that will be scanned
146 for C preprocessor implicit dependencies
152 [".c", ".C", ".cxx", ".cpp", ".c++", ".cc",
153 ".h", ".H", ".hxx", ".hpp", ".hh",
154 ".F", ".fpp", ".FPP",
156 ".S", ".spp", ".SPP"]
164 The C compiler used for generating shared-library objects.
165 See also &cv-link-CC; for compiling to static objects.
170 <cvar name="SHCCCOM">
173 The command line used to compile a C source file
174 to a shared-library object file.
175 Any options specified in the &cv-link-SHCFLAGS;,
176 &cv-link-SHCCFLAGS; and
177 &cv-link-CPPFLAGS; construction variables
178 are included on this command line.
179 See also &cv-link-CCCOM; for compiling to static objects.
184 <cvar name="SHCCCOMSTR">
187 If set, the string displayed when a C source file
188 is compiled to a shared object file.
189 If not set, then &cv-link-SHCCCOM; (the command line) is displayed.
190 See also &cv-link-CCCOMSTR; for compiling to static objects.
194 env = Environment(SHCCCOMSTR = "Compiling shared object $TARGET")
199 <cvar name="SHCCFLAGS">
202 Options that are passed to the C and C++ compilers
203 to generate shared-library objects.
204 See also &cv-link-CCFLAGS; for compiling to static objects.
209 <cvar name="SHCFLAGS">
212 Options that are passed to the C compiler (only; not C++)
213 to generate shared-library objects.
214 See also &cv-link-CFLAGS; for compiling to static objects.
219 <cvar name="CCDEPFLAGS">
222 Options to pass to C or C++ compiler to generate list of dependency files.
225 This is set only by compilers which support this functionality. (&t-link-gcc;, &t-link-clang;, and &t-link-msvc; currently)