Everything

 

-M [V1.00.00 or later]


This option outputs only the header file dependency file for the input C source file.

[Specification format]

-M

 

-

Interpretation when omitted

Processing continues without analyzing dependencies. A header file dependency file is not output.

[Detailed description]

-

This option analyzes only the header file dependencies for the input file, and then outputs the results to a file.

-

The output file name is the same as the input file name with the extension replaced by "dep".

-

You can specify the output file name by specifying this option together with the -o option.

-

Using the -M and -MM options together causes an error.

[Example of use]

ccrl test.c -cpu=S3 -M

-

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

Caution 1.

The output might include a path.

Caution 2.

The example shows only some of the files in the output file. The actual output file contains all files with dependencies.

[Remark]

-

The following three types of header files are output:

-

File included by specifying the -preinclude option

-

File included by specifying #include <file-name>

-

File included by specifying #include "file-name"