makedep

Option Type Default Value #pragma options C C++
-qoption - - x x

Syntax

    -qmakedep

Purpose
Creates an output file that contains targets suitable for inclusion in a description file for the AIX make command.

Notes
The -qmakedep option is functionally identical to the -M option.

.u files are not make files; .u files must be edited before they can be used with the make command. For more information on this command, see AIX Version 4 Commands Reference.

If you do not specify the -o option, the output file generated by the -qmakedep option is created in the current directory. It has a .u suffix. For example, the command:

xlC -qmakedep person_years.c

produces the output file person_years.u.

A .u file is created for every input file with a .c or .i suffix. Output .u files are not created for any other files. For example, the command:

xlC -qmakedep conversion.c filter.c /lib/libm.a

produces two output files, conversion.u and filter.u (and an executable file as well). No .u file is created for the library.

If the current directory is not writable, no .u file is created. If you specify -ofile_name along with -qmakedep, the .u file is placed in the directory implied by -ofile_name. For example, for the following invocation:

xlC -qmakedep -c t.c -o /tmp/t.o

places the .u output file in /tmp/t.u.

Format of the Output File
The output file contains a line for the input file and an entry for each include file. It has the general form:

file_name.o:file_name.c
file_name.o:include_file_name

Include files are listed according to the search order rules for the #include preprocessor directive, described in Directory Search Sequence for Include Files Using Relative Path Names. (If the include file is not found, it is not added to the .u file.)

Files with no include statements produce output files containing one line that lists only the input file name.



List of Batch Compiler Options and Their Defaults
Options that Specify Preprocessor Options
Equivalent Batch Compile-Link and Incremental Build Options