-Lm: List of Included Files in Make Format

Group

OUTPUT

Scope

Compilation Unit

Syntax
-Lm[=<filename>] 
Arguments

<filename>: file to be used for the output

Default

The default filename is Make.txt

Defines

None

Pragmas

None

Description

The -Lm option causes the Compiler to generate a text file which contains a list of the #include files specified in the source. The generated list is in a make format. The -Lm option is useful when creating make files. The output from several source files may be copied and grouped into one make file. The generated list is in the make format. The filename does not include the path. After each entry, an empty line is added. The information is appended to the specified filename (or the make.txt file, if no argument is given). If the TEXTPATH: Text File Path environment variable is set, the file is stored into the path specified by the environment variable. Otherwise it is stored in the current directory.

Example

The following listing is an example where the -Lm option generates a make file containing include directives.

Listing: Make file construction


COMPOTIONS=-Lm=mymake.txt Compiling the following sources 'foo.c' and 'second.c': 
/* foo.c */ 
#include <stddef.h> 
#include "myheader.h" 
... 
/* second.c */ 
#include "inc.h" 
#include "header.h" 
... 
This adds the following entries in the 'mymake.txt': 
foo.o : foo.c stddef.h myheader.h 
second.o : second.c inc.h header.h 
See also

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

-Lo: Append Object File Name to List (enter [<files>])