7.101 -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.

Examples

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.35 --depend=filename
7.39 --depend_system_headers, --no_depend_system_headers
7.51 -E
7.102 --md
7.38 --depend_single_line, --no_depend_single_line
7.110 -o filename
Non-ConfidentialPDF file icon PDF versionARM DUI0375E
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.