Sun Studio 12: C User's Guide

B.2.105 -xM1

Generates makefile dependencies like -xM, but excludes /usr/include files. For example:

more hello.c
cc– xM hello.c
hello.o: hello.c
hello.o: /usr/include/stdio.h

Compiling with -xM1 does not report header file dependencies:

cc– xM1 hello.c
hello.o: hello.c

-xM1 is not available under -Xs mode.

If you specify -xM1 and -xMF, the compiler appends all makefile dependency information to the file specified with -xMF.