OUTPUT
Compilation Unit
-Lm[=<filename>]
<filename>: file to be used for the output
The default filename is Make.txt
None
None
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.
The following listing is an example where the -Lm option generates a make file containing include directives.
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