![]() Finally - MF object.d specifies that the name of the generated dependent file is object.d. One compilation operation can generate header file dependency files (object.d above) and target files without introducing the dependency of system header files. Where, - MT is used to specify the target file name corresponding to the source file (here object.o)- MP instructs GCC compiler to add pseudo target rules for dependent header files- MMD does not implicitly add the - E compilation option. The commonly used command line options are: -MT object.o -MP -MMD -MF object.d ![]() The - MXX command line option of GNU GCC is used to generate the dependency of a code file. It is necessary to automatically generate the header file dependency through the compilation tool. When writing GNU Makefile, it is not feasible to manually point out the header file dependency of its source code file. There are many header files in complex C/C + + projects. ![]() Generating header file dependencies using GCC compiler
0 Comments
Leave a Reply. |