1.32 -MT

Changes the target of the makefile dependency rule produced by dependency generating options.

Note

The -MT option only has an effect when used in conjunction with either the -M, -MM, -MD, or -MMD options.
By default, armclang -M creates makefile dependencies rules based on the source filename:
armclang --target=aarch64-arm-none-eabi -M test.c 
test.o: test.c header.h
The -MT option renames the target of the makefile dependency rule:
armclang --target=aarch64-arm-none-eabi -M test.c -MT foo  
foo: test.c header.h
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, the -MT option renames the target of all dependency rules:
armclang --target=aarch64-arm-none-eabi -M test1.c test2.c -MT foo        
foo: test1.c header.h
foo: test2.c header.h
Specifying multiple -MT options creates multiple targets for each rule:
armclang --target=aarch64-arm-none-eabi -M test1.c test2.c -MT foo -MT bar
foo bar: test1.c header.h
foo bar: test2.c header.h
Related reference
1.27 -M, -MM
1.28 -MD, -MMD
1.29 -MF
Non-ConfidentialPDF file icon PDF versionARM DUI0774E
Copyright © 2014-2016 ARM. All rights reserved.