6.6.7.23 -MF file

When used with -M or -MM, specifies a file in which to write the dependencies. If no -MF switch is given, the preprocessor sends the rules to the same place it would have sent preprocessed output.

When used with the driver options, -MD or -MMD, -MF, overrides the default dependency output file.