Everything
 

-MT [V2.03.00 or later]


< Compile Options / Dependency File Output Specification Options >

[Format]

-MT=character-string

 

-

[Default]

The target name to be output to the header file dependency file is specified from the input file.

[Description]

-

This option specifies the target name to be output to the header file dependency file.

-

An error occurs if -output=dep, -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]

ccrx test.c -isa=rxv3 -M -MT=target1 -MT=target2

-

<C source>

<test1.h>
#include "test2.h"
<test2.h>
// void
<test.c>
#include <stdio.h>
#include "test1.h"

-

<Output file>

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.