-MF

Category

Output control

Pragma equivalent

None.

Purpose

Specifies the name or location for the dependency output files that are generated by the -qmakedep or -M option.

For more information about the -qmakedep and -M options, see -qmakedep, -M.

Syntax

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

Defaults

If -MF is not specified, the dependency output file is generated with the same name as the object file but with a .u suffix in the current working directory.

Parameters

file_path
The target output path. file_path can be a full directory path or file name. If file_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 you compile multiple source files, only a single dependency file will be generated. The dependency file contains the make rule for the last file specified on the command line.

Predefined macros

None.



Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us