This option specifies the target name to be output to the header file dependency file.
[Specification format]
- | Interpretation when omitted |
The target name to be output to the header file dependency file is specified from the input file.
[Detailed description]
- | This option specifies the target name to be output to the header file dependency file. |
- | This option is ignored if -M, -MM, -MD, or -MMD is not specified. |
- | If character-string is omitted, an error occurs. |
- | If multiple character-strings are specified, they are all handled as targets. |
- | Use a space as a delimiter between the specified character-strings. |
- | If a character-string includes a space, use a backslash character (\) as an escape character. |
[Example of use]
ccrh test.c -M -MT=target1 -MT=target2
|
<test1.h>
#include "test2.h"
|
<test.c>
#include <stdio.h>
#include "test1.h"
|
target1 target2: test.c
target1 target2: stdio.h
target1 target2: test1.h
target1 target2: test2.h
|
Note 1. | The output might include a path. |
Note 2. | The example shows only some of the files in the output file. The actual output file contains all files with dependencies. |