make[d]

+make[d]

The +make[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 +maked 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 +maked when you also specify the -Eor the -Poption. When used with the -Eoption, only dependency information is generated.

Table 6 lists examples of the +make[d] option.

Table 6 Examples

Command line Specified

.d file name

.d file location

Preprocessing

 

 

 

output

 

 

 

 

aCC -c +make a.C

none

stdout

none

 

 

 

 

aCC -c -E -.i +maked a.C

a.d

current directory

none

 

 

 

 

aCC -c -P +maked a.C -o b.o

b.d

current directory

a.i

 

 

 

 

aCC -c -P +maked a.C -o /tmp/c

c.d

/tmp directory

a.i

 

 

 

 

+Make[d]

+Make[d]

The +Make[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 +Maked 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 +Maked when you also specify the -Eor the -Poption. When used with the -Eoption, only dependency information is generated.

Table 7 Examples

Command line specified

.d file

.d file location

Preprocessing output

 

name

 

 

 

 

 

 

aCC -c +Make a.C

none

stdout

none

 

 

 

 

aCC -c -E -.i +Maked a.C

a.d

current directory

none

 

 

 

 

aCC -c -P +Maked a.C -o b.o

b.d

current directory

a.i

 

 

 

 

aCC -c -P +Maked a.C -o /tmp/c

c.d

/tmp directory

a.i

 

 

 

 

-P

-P

Using the -Poption 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

Preprocessor Options

73