.d dependencies 依赖文件。 是给Makefile用的。内容和Makefile的target相似: 假设hello.c里有 #include "hello.h" hello.h里有 #include "foo.h" #include "bar.h" gcc -c -MMD hello.c就会产生hello.d hello.o: hello.c hello.h foo.h bar.h 在Makefile里用-include 进来后 即使hello.c没有修改...
12、-MM:和-M一样,只不过忽略由#include所造成的依赖关系。 13、-MD:和-M相同,只不过将输出导入到”.d”文件里面 14、-MMD:和-MM相同,将输出导入到”.d”文件里面。 15、-llibrary:定制编译的时候使用的库 例:gcc -lpthread test.c //在编译的时候要依赖pthread这个库 16、-Ldir:定制编译的时候搜索库...
和-M相同,但是输出将导入到.d的文件里面 -MMD 和-MM 相同,但是输出将导入到 .d 的文件里面。 -Wa,option 此选项传递 option 给汇编程序; 如果 option 中间有逗号, 就将 option 分成多个选项, 然 后传递给会汇编程序。 -Wl.option 此选项传递 option 给连接程序; 如果 option 中间有逗号, 就将 option 分...
-MM 与 -M 类似但是忽略系统头文件 -MMD 与 -MD 类似但是忽略系统头文件 -MP 为所有头文件生成伪目标 -MQ <目标> 添加一个 MAKE 括起的目标 -MT <目标> 添加一个不被括起的目标 -P 不生成 #line 指令 -U<宏> 取消定义宏 -Wabi 当结果与 ABI 相容的编译器的编译结果不同时给出警告 -Wabi-tag W...
-MF file When used with -M or -MM, specifies a file to write the dependencies to. If no -MF switch is given the preprocessor sends the rules to the same place it would have sent preprocessed output. When used with the driver options -MD or -MMD, -MF overrides the default dependency...
file -M -MD -MF -MG -MM -MMD -MP -MQ -MT -no-integrated-cpp -P -pthread -remap -traditional inhibited with the negated form -fno-working-directory. If the -P flag is present in the command line, this option -P Inhibit generation of linemarkers in the output from the preprocessor...
MMD -MP -MQ -MT -no-integrated-cpp -P -pthread -remap -traditional -traditional-cpp -trigraphs -Umacro -undef -Wp,option -Xpreprocessor option Assembler Options -Wa,option -Xassembler option Linker Options object-file-name -fuse-ld=linker -llibrary -nostartfiles -nodefaultlibs -nostdlib -...
%{!Q:-quiet} %{nostdinc*} %{C} %{CC} %{v} %@{I*&F*} %{P} %I %{MD:-MD %{!o:%b.d}%{o*:%.d%*}} %{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}} %{M} %{MM} %{MF*} %{MG} %{MP} %{MQ*} %{MT*} %{!E:%{!M:%{!MM:%{!MT:%{!MQ:%{MD|MMD:%{o*:-...
-MMD 和-MM 相同,但是输出将导入到 .d 的文件里面。 -Wa,option 此选项传递 option 给汇编程序; 如果 option 中间有逗号, 就将 option 分成多个选项, 然 后传递给会汇编程序。 -Wl.option 此选项传递 option 给连接程序; 如果 option 中间有逗号, 就将 option 分成多个选项, 然 后传递给会连接程序。
11、le -iprefix file -iwithprefix dir -M -MD -MM -MMD -nostdinc -P -Umacro -undef 汇编器选项(Assembler Option) -Wa,option 连接器选项(Linker Option) -llibrary -nostartfiles -nostdlib -static -shared -symbolic -Xlinker option -Wl,option -u symbol 目录选项(Directory Option) -Bprefix -...