C++ User's Guide

-xM1

Generates dependency information, but excludes /usr/include.

This is the same as -xM, except that this option does not report dependencies for the /usr/include header files.

Examples

When you compile the code sample shown for the -xM option:

% CC -xM1 hello.c

the output is:

hello.o: hello.c