Produces a list of makefile dependency lines suitable for use by a make utility.
The compiler executes only the preprocessor step of the compilation. By default, output is on the standard output stream.
If you specify multiple source files, a single dependency file is created.
If you specify the
-o option, the dependency
lines generated on standard output make reference to filename.o, and
not to source.o. However, no object file is produced with the
-M -o .
--md option to generate dependency lines and object files for each
You can redirect output to a file by using standard UNIX and MS-DOS notation, for example:
source.c > Makefile