1.29 -MF

Specifies a filename for the makefile dependency rules produced by the -M and -MD options.

Syntax

-MF filename
Where:
filename
Specifies the filename for the makefile dependency rules.

Note

The -MF option only has an effect when used in conjunction with one of the -M, -MM, -MD, or -MMD options.
The -MF option overrides the default behavior of sending dependency generation output to the standard output stream, and sends output to the specified filename instead.
armclang -MD sends output to a file with the same name as the source file by default, but with a .d suffix. The -MF option sends output to the specified filename instead. Only use a single source file with armclang -MD -MF.

Examples

This example sends makefile dependency rules to standard output, without compiling the source:
armclang --target=aarch64-arm-none-eabi -M source.c
This example saves makefile dependency rules to deps.mk, without compiling the source:
armclang --target=aarch64-arm-none-eabi -M source.c -MF deps.mk
This example compiles the source and saves makefile dependency rules to source.d (using the default file naming rules):
armclang --target=aarch64-arm-none-eabi -MD source.c
This example compiles the source and saves makefile dependency rules to deps.mk:
armclang --target=aarch64-arm-none-eabi -MD source.c -MF deps.mk
Related reference
1.27 -M, -MM
1.28 -MD, -MMD
1.32 -MT
Non-ConfidentialPDF file icon PDF versionARM DUI0774E
Copyright © 2014-2016 ARM. All rights reserved.