-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 Compiler stores the file 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 uses the -Li compiler option to display a file's contents when that file contains an included directive.

Listing: Display Contents of a File Containing Include Directives


-Li If the source file is: `C:\myFiles\b.c':

/* C:\myFiles\b.c */

#include <string.h>

Then the generated file is:

C:\myFiles\b.c :\

C:\Freescale\lib\targetc\include\string.h \

C:\Freescale\lib\targetc\include\libdefs.h \

C:\Freescale\lib\targetc\include\hidef.h \

C:\Freescale\lib\targetc\include\stddef.h \

C:\Freescale\lib\targetc\include\stdtypes.h 
See also

-Lm: List of Included Files in Make Format compiler option