-MF

Category

Output control

Pragma equivalent

None.

Purpose

Specifies the target for the output generated by the -qmakedep or -M options.

This option is used only together with the -qmakedep or -M options. See the description for the -qmakedep, -M for more information.

Syntax

Read syntax diagramSkip visual syntax diagram
>>- -MF--path--------------------------------------------------><

Defaults

Not applicable.

Parameters

path
The target output path. path can be a full directory path or file name. If path is the name of a directory, the dependency file generated by the compiler is placed into the specified directory. If you do not specify a directory, the dependency file is stored in the current working directory.

Usage

If the file specified by -MF option already exists, it will be overwritten.

If you specify a single file name for the -MF option when compiling multiple source files, only a single dependency file will be generated containing the make rule for the last file specified on the command line.

Predefined macros

None.

Related information