You copied the Doc URL to your clipboard.

Arm Compiler armclang Reference Guide : -MF

-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 -mcpu=cortex-a53 -M source.c

This example saves makefile dependency rules to deps.mk, without compiling the source:

armclang --target=aarch64-arm-none-eabi -mcpu=cortex-a53 -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 -mcpu=cortex-a53 -MD source.c

This example compiles the source and saves makefile dependency rules to deps.mk:

armclang --target=aarch64-arm-none-eabi -mcpu=cortex-a53 -MD source.c -MF deps.mk
Was this page helpful? Yes No