C ユーザーズガイド

-xM1

-xM と同様に依存関係を収集しますが、/usr/include ファイルは除きます。次に例を示します。


more hello.c
#include<stdio.h>
main()
{
 (void)printf("hello¥n");
}
cc -xM hello.c
hello.o: hello.c
hello.o: /usr/include/stdio.h

-xMl オプションを使用してコンパイルすると、ヘッダーファイルの依存関係の出力が抑制されます。


cc -xM1 hello.c
hello.o: hello.c