2.1.25. ‑‑depend=filename
This option instructs the compiler to write make file dependency lines to a file during compilation.
--depend=filename
Where:
filenameis the name of the dependency file to be output.
If you specify multiple source files on the command line then any --depend option is ignored. No dependency file is generated in this case.
The output file is suitable for use by a make utility. To change the output format to be compatible with UNIX make utilities, use the ‑‑depend_format option.