-Li: List of Included Files to ".inc" File

Group

OUTPUT

Scope

Compilation Unit

Syntax
  -Li 
  
Arguments

None

Default

None

Defines

None

Pragmas

None

Description

The -Li option causes the Compiler to generate a text file which contains a list of the #include files specified in the source. This text file shares the same name as the source file but with the extension, *.inc. The files are stored in the path specified by the TEXTPATH: Text File Path environment variable. The generated file may be used in make files.

Example

The following listing is an example where the -Li compiler option can be used to display a file's contents when that file contains an included directive.

Listing: Display contents of a file when include directives are present


If the source file is:
 D:\Compile\Sources\main.c: 
/*D:\Compile\Sources\main.c*/ 
#include <hidef.h> 
#include "derivative.h" 
Then the generated file is:

D:\Compile\Sources\main.c : \ 

"C:\Freescale\CW MCU V10.x\MCU\lib\hc08c\include\hidef.h" \ 
"C:\Freescale\CW MCU V10.x\MCU\lib\hc08c\include\stddef.h" \ 
"C:\Freescale\CW MCU V10.x\MCU\lib\hc08c\include\stdtypes.h" \ 
D:\Compile\Sources\derivative.h \ 
D:\Compile\Sources\MC9S08GT32.h 
See also

-Lm: List of Included Files in Make Format