-LmCfg: Configuration for List of Included Files in Make Format (option -Lm)

Group

OUTPUT

Scope

Compilation Unit

Syntax
  -LmCfg[={i|l|m|o|u}] 
  
Arguments

i: Write path of included files

l: Use line continuation

m: Write path of main file

o: Write path of object file

u: Update information

x: Unix style paths

Default

None

Defines

None

Pragmas

None

Description

Use this option when configuring the -Lm option (refer -Lm: List of Included Files in Make Format). -LmCfg operates only when also using the -Lm option. The -Lm option produces the `dependency' information for a make file. Each dependency information grouping is structured as shown:

  <main object file>: <main source file> {<included file>}

  
Example

Compile a file named b.c which includes stdio.h. The -Lm option produces the following:

  b.o: b.c stdio.h stddef.h stdarg.h string.h

  

The suboption, ` l', uses line continuation for each single entry in the dependency list. This improves readability as shown in the following listing.

Listing: Using Line Continuations for Clarity


b.o: \
  b.c \

  stdio.h \

  stddef.h \

  stdarg.h \

  string.h

Use the suboption ` m' to write the full path of the compiled file. This is necessary when there are files with the same name in different directories:

  b.o: C:\test\b.c stdio.h stddef.h stdarg.h string.h

  

The suboption ` o' writes the full name of the target object file:

  C:\test\obj\b.o: b.c stdio.h stddef.h stdarg.h string.h

  

The suboption ` i' writes the full path of all included files in the dependency list:

  b.o: b.c C:\Freescale\lib\include\stdio.h 
  C:\Freescale\lib\include\stddef.h 
  C:\Freescale\lib\include\stdarg.h 
  C:\Freescale\lib\include\ 
  C:\Freescale\lib\include\string.h

  

The suboption ` u' updates the information in the output file. If the file does not exist, the Compiler creates the file. If the file exists and the current information is not yet in the file, the Compiler appends the information to the file. If the information is already present, the Compiler updates the information. This allows you to specify this suboption for each compilation ensuring that the make dependency file is always up to date.

Example
  COMPOPTIONS=-LmCfg=u 
  
See also

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

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

-Lm: List of Included Files in Make Format

Make Utility