7.109 -M

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 filename 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 combination of -M -o filename.
Use the --md option to generate dependency lines and object files for each source file.


You can redirect output to a file by using standard UNIX and MS-DOS notation, for example:
armcc -M source.c > Makefile
Related reference
7.18 -C
7.37 --depend=filename
7.41 --depend_system_headers, --no_depend_system_headers
7.54 -E
7.110 --md
7.40 --depend_single_line, --no_depend_single_line
7.119 -o filename
Non-ConfidentialPDF file icon PDF versionARM DUI0375F
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.