1.28 -MD, -MMD

Compiles source files and produces a list of makefile dependency rules suitable for use by a make utility.

The compiler creates a makefile dependency file for each source file, using a .d suffix. Unlike -M and -MM, that cause compilation to stop after the preprocessing stage, -MD and -MMD allow for compilation to continue.
-MD lists both system header files and user header files.
-MMD lists only user header files.

Example

The following example creates makefile dependency lists test1.d and test2.d and compiles the source files to an image with the default name, a.out:
armclang --target=arm-arm-none-eabi -march=armv8-a -MD test1.c test2.c
Related reference
1.27 -M, -MM
1.29 -MF
1.32 -MT
Non-ConfidentialPDF file icon PDF versionARM DUI0774E
Copyright © 2014-2016 ARM. All rights reserved.