HP aC++/HP C A.06.25 Programmer's Guide
+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
-P
-P
Using the -P option only preprocesses the files named on the command line without
invoking further phases. It leaves the result in corresponding files with the suffix .i.
For example, the following command preprocesses the file prog.C leaving the output
in the file prog.i. It does not compile the program.
aCC -P prog.C
-Uname
-Uname
name is the symbol name whose definition is removed from the preprocessor.
This option undefines any name that has initially been defined by the preprocessing
stage of compilation.
A name can be a definition set by the compiler. This is displayed when you specify the
-v option. A name can also be a definition that you have specified with the -D option
on the command line.
Preprocessor Options 99