HP aC++/HP C A.06.20 Programmer's Guide

The +m[d] option directs a list of the quote enclosed (" ") header files upon which your
source code depends to stdout. The list is in a format accepted by the make command.
If +md is specified, the list is directed to a .d file. The .d file name prefix is the same
as that of the object file. The .d file is created in the same directory as the object file.
Usage:
Use +m[d] when you also specify the -E or the -P option. When used with the -E
option, only dependency information is generated.
Table 2-5 lists examples of the +m[d] option.
Table 2-5 Examples
Preprocessing
Output
.d file location.d file nameCommand Line Specified
none
stdout
none
aCC -c +m a.C
nonecurrent directory
a.daCC -c -E -.i +md a.C
a.i
current directory
b.daCC -c -P +md a.C -o b.o
a.i/tmp directoryc.daCC -c -P +md a.C -o /tmp/c
+M[d] and +Make[d]
+M[d]
The +M[d] option directs a list of both the quote enclosed (" ") and angle bracket
enclosed (< >) header files upon which your source code depends to stdout. The list
is in a format accepted by the make command.
If +Md is specified, the list is directed to a .d file. The .d file name prefix is the same
as that of the object file. The .d file is created in the same directory as the object file.
Usage:
Use +Md when you also specify the -E or the -P option. When used with the -E option,
only dependency information is generated.
Table 2-6 Examples
Preprocessing Output.d file location.d file
name
Command Line Specified
none
stdout
none
aCC -c +M a.C
nonecurrent directory
a.daCC -c -E -.i +Md a.C
a.i
current directory
b.daCC -c -P +Md a.C -o b.o
a.i/tmp directoryc.daCC -c -P +Md a.C -o /tmp/c
Preprocessor Options 97