-MF很好理解,就是输出依赖文件名 关于-MF和-MT,这些选项是用来生成依赖文件列表的,而这个列表又能以-include <dlist>或者include <dlist>的形式添加到Makefile中。其中MF指定文件名,MT指定依赖目标名。
When used with the driver options -MD or -MMD, -MF overrides the default dependency output file. -MT target Change the target of the rule emitted by dependency generation. By default CPP takes the name of the main input file, deletes any directory components and any file suffix such as ....
-MM 与-M相似,只是不包含系统头文件 -MF file 将依赖关系写到文件file中 -MT target 重新定义目标对象名。默认的依赖目标名为% (编译生成的%.o)。 -MD/MMD 默认将生成的依赖文件写入%.d(编译生成的%.o)中。可以用-MF指定文件来覆盖。 示例makefile如下: objs =a.o b.o c.o dep_files := $(pats...
要求把缺失的头文件按存在对待,并且假定他们和源文件在同一目录下,必须和 ‘-M’ 选项一起用。 -MF File 当使用了 “-M” 或者 “-MM” 选项时,则把依赖关系写入名为 “File” 的文件中。若同时也使用了 “-MD” 或“-MMD”,“-MF” 将覆写输出的依赖文件的名称 。 例如: gcc -M -MF main.d m...
-MMD 依赖关系不包含标准库 -MF + fileName 将依赖关系写入到fileName文件中 -MT 在生成的依赖文件中,指定规则中的目标 接下来简单介绍几个例子: gcc -M main.c 终端输出 main.o: main.c defs.h \ /usr/include/stdio.h \ /usr/include/features.h \ /usr/include/sys/cdefs.h /usr/include/gnu...
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...
-MF File 当使用了 “-M” 或者 “-MM” 选项时,则把依赖关系写入名为 “File” 的文件中。若同时也使用了 “-MD” 或“-MMD”,“-MF” 将覆写输出的依赖文件的名称 。 例如: gcc -M -MF main.d main.c 则“-M” 输出的内容就保存在 main.d 文件中了 ...
-MF File 当使用了 ‘-M’ 或者 ‘-MM’ 选项时,则把依赖关系写入名为 ‘File’ 的文件中。若同时也使用了 ‘-MD’ 或‘-MMD’,’-MF’ 将覆写输出的依赖文件的名称 例如:gcc -M -MF main.d main.c 则'—M' 输出的内容就存在于 main.d 文件中了 ...
-MF File当使用了 “-M” 或者 “-MM” 选项时,则把依赖关系写入名为 “File” 的文件中。若同时也使用了 “-MD” 或“-MMD”,“-MF” 将覆写输出的依赖文件的名称 。 编辑-MD等同于 -M -MF File,但是默认关闭了 -E 选项。其输出的文件名是基于 -o 选项若给定了 -o 选项,则输出的依赖文件名...
若同时也使用了 ‘-MD’ 或‘-MMD’,’-MF’ 将覆写输出的依赖文件的名称 例如:gcc -M -MF main.d main.c 则'—M' 输出的内容就存在于 main.d 文件中了 -MD等同于 ‘-M -MF File’,但是默认关闭了 ‘-E’ 选项. 其输出的文件名是基于 ‘-o’ 选项,若给定了 ‘-o’ 选项,则输出的文件名...