生成 makefile 依赖性类似 -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 |
使用 -xM1 编译不会报告头文件的依赖性:
cc– xM1 hello.c hello.o: hello.c |
-xM1 在 -Xs 模式下不可用。
如果您指定 -xM 和 -xMF,则编译器会将所有 makefile 依赖性信息附加至使用 -xMF 指定的文件中。