Home > arm-linux-gnueabi-cpp > arm-linux-gnueabi-cpp -M

arm-linux-gnueabi-cpp(1) -M
The C Preprocessor
-M  Instead of outputting the result of preprocessing, output a rule suitable for make describing the
    dependencies of the main source file.  The preprocessor outputs one make rule containing the object
    file name for that source file, a colon, and the names of all the included files, including those
    coming from -include or -imacros command line options.

Related

cpp [-Dmacro[=defn]...] [-Umacro] [-Idir...] [-iquotedir...] [-Wwarn...] [-M|-MM] [-MG] [-MF filename] [-MP] [-MQ target...] [-MT target...] [-P] [-fno-working-directory] [-x language] [-std=standard] infile outfile
Many options have multi-letter names; therefore multiple single-letter options may not be grouped: -dM is very different from -d -M.
Passing -M to the driver implies -E, and suppresses warnings with an implicit -w.
-MM Like -M but do not mention header files that are found in system header directories, nor header files that are included, directly or indirectly, from such a header.
-MF file When used with -M or -MM, specifies a file to write the dependencies to. If no -MF switch is given the preprocessor sends the rules to the same place it would have sent preprocessed output.
-MG In conjunction with an option such as -M requesting dependency generation, -MG assumes missing header files are generated files and adds them to the dependency list without raising an error. The dependency filename is taken directly from the "#include" directive without prepending any path. -MG also suppresses preprocessed output, as a missing header file renders this useless.
-MD -MD is equivalent to -M -MF file, except that -E is not implied. The driver determines file based on whether an -o option is given. If it is, the driver uses its argument but with a suffix of .d, otherwise it takes the name of the input file, removes any directory components and suffix, and applies a .d suffix.
Note that you can also specify places to search using options such as -I, and control dependency output with options like -M. These take precedence over environment variables, which in turn take precedence over the configuration of GCC.
SUNPRO_DEPENDENCIES This variable is the same as DEPENDENCIES_OUTPUT (see above), except that system header files are not ignored, so it implies -M rather than -MM. However, the dependence on the main input file is omitted.

Tips or Questions?

More Commands:

arm-linux-gnueabi-cpp
arm-linux-gnueabi-cpp -C
arm-linux-gnueabi-cpp -fdirectives-only
arm-linux-gnueabi-cpp -x
arm-linux-gnueabi-cpp -fworking-directory
arm-linux-gnueabi-cpp -Wunused-macros
arm-linux-gnueabi-cpp -fpreprocessed
arm-linux-gnueabi-cpp -Wtrigraphs
arm-linux-gnueabi-cpp -MT
arm-linux-gnueabi-cpp -I
arm-linux-gnueabi-cpp -include
arm-linux-gnueabi-cpp -finput-charset
arm-linux-gnueabi-cpp -fwide-exec-charset
arm-linux-gnueabi-cpp -isystem
arm-linux-gnueabi-cpp -iquote
arm-linux-gnueabi-cpp -M
arm-linux-gnueabi-cpp -idirafter
arm-linux-gnueabi-cpp -imacros
arm-linux-gnueabi-cpp -Wendif-labels
arm-linux-gnueabi-cpp -Wall
arm-linux-gnueabi-cpp -H
arm-linux-gnueabi-cpp -iwithprefix
arm-linux-gnueabi-cpp -dCHARS
arm-linux-gnueabi-cpp -A
arm-linux-gnueabi-cpp -ftabstop
arm-linux-gnueabi-cpp -o
arm-linux-gnueabi-cpp -isysroot
arm-linux-gnueabi-cpp -Wtraditional
arm-linux-gnueabi-cpp -Wsystem-headers
arm-linux-gnueabi-cpp -P
arm-linux-gnueabi-cpp -MF
arm-linux-gnueabi-cpp -fexec-charset
arm-linux-gnueabi-cpp -pedantic-errors
arm-linux-gnueabi-cpp -Wcomment
arm-linux-gnueabi-cpp -nostdinc
arm-linux-gnueabi-cpp -fno-show-column
arm-linux-gnueabi-cpp -fextended-identifiers
arm-linux-gnueabi-cpp -iprefix
arm-linux-gnueabi-cpp -Wundef
arm-linux-gnueabi-cpp -std
arm-linux-gnueabi-cpp -pedantic
arm-linux-gnueabi-cpp -version
arm-linux-gnueabi-cpp -MQ
arm-linux-gnueabi-cpp -v
arm-linux-gnueabi-cpp -traditional-cpp
arm-linux-gnueabi-cpp -undef
arm-linux-gnueabi-cpp -remap
arm-linux-gnueabi-cpp -imultilib
arm-linux-gnueabi-cpp -U
arm-linux-gnueabi-cpp -Werror
arm-linux-gnueabi-cpp -MMD
arm-linux-gnueabi-cpp -fdollars-in-identifiers
arm-linux-gnueabi-cpp -w
arm-linux-gnueabi-cpp -D
arm-linux-gnueabi-cpp -trigraphs

Powered by ExplainShell