Red Hat ENTERPRISE LINUX 3 - USING GCC Using Instructions page 73

Using the gnu compiler collection (gcc)
Hide thumbs Also See for ENTERPRISE LINUX 3 - USING GCC:
Table of Contents

Advertisement

Chapter 4. GCC Command Options
-MF
file
When used with
given the preprocessor sends the rules to the same place it would have sent preprocessed output.
When used with the driver options
file.
-MG
In conjunction with an option such as
ing header files are generated files and adds them to the dependency list without raising an error.
The dependency filename is taken directly from the
path.
also suppresses preprocessed output, as a missing header file renders this useless.
-MG
This feature is used in automatic updating of makefiles.
-MP
This option instructs CPP to add a phony target for each dependency other than the main file,
causing each to depend on nothing. These dummy rules work around errors
remove header files without updating the
This is typical output:
test.o: test.c test.h
test.h:
-MT
target
Change the target of the rule emitted by dependency generation. By default CPP takes the name
of the main input file, including any path, deletes any file suffix such as
platform's usual object suffix. The result is the target.
An
option will set the target to be exactly the string you specify. If you want multiple targets,
-MT
you can specify them as a single argument to
For example,
-MT '$(objpfx)foo.o'
$(objpfx)foo.o: foo.c
-MQ
target
Same as
, but it quotes any characters which are special to Make.
-MT
gives
$$(objpfx)foo.o: foo.c
The default target is automatically quoted, as if it were given with
-MD
is equivalent to
-MD
based on whether an
, otherwise it take the basename of the input file and applies a
.d
If
is used in conjunction with
-MD
output file, but if used without
Since
is not implied,
-E
the compilation process.
-MMD
Like
except mention only user header files, not system -header files.
-MD
or
, specifies a file to write the dependencies to. If no
-M
-MM
-MD
-M
, except that
-M -MF
file
option is given. If it is, the driver uses its argument but with a suffix of
-o
, any
-E
, each
-E
can be used to generate a dependency output file as a side-effect of
-MD
or
,
overrides the default dependency output
-MMD
-MF
requesting dependency generation,
#include
to match.
Makefile
, or use multiple
-MT
might give
is not implied. The driver determines
-E
switch is understood to specify the dependency
-o
is understood to specify a target object file.
-o
-MF
assumes miss-
-MG
directive without prepending any
make
, and appends the
.c
options.
-MT
-MQ '$(objpfx)foo.o'
.
-MQ
suffix.
.d
67
switch is
gives if you
file

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise linux 3

Table of Contents