Everything

 

-MP [V2.04.00 or later]


This option additionally outputs the include file name as the target to the header file dependency file.

[Specification format]

-MP

 

-

Interpretation when omitted

The include file name is not output as the target.

[Detailed description]

-

This option additionally outputs the include file name as the target to the dependency file.

-

This option is ignored if -M, -MM, -MD, or -MMD is not specified.

[Example of use]

ccrh test.c -M -MP

-

<C source>

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

-

<Output file>

test.obj: test.c
test.obj: stdio.h
stdio.h:
test.obj: test1.h
test1.h:
test.obj: test2.h
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.