Understanding the folders and files generated by Eclipse

前端 未结 1 697
予麋鹿
予麋鹿 2021-01-03 07:54

Short version of the question: What are objects.mk, sources.mk, makefile, subdir.mk, *.o and *.d

相关标签:
1条回答
  • 2021-01-03 08:50

    objects.mk, sources.mk, makefile and subdir.mk are makefiles generated by Eclipse according to your project type (executable, library, shared library). For their contents and how these work refer to the make command documenation of your toolchain. In short these are responsible to call the compiler and linker.

    ClassName.o is the object file generated by the compiler, all of them will be linked together to an executable or stored in a library (depending on project type).

    ClassName.d is a so called dependency reference file that is generated by the compiler (on demand) and included into the makefiles, that it's possible to track changes in header files, and recompile the concerned source files if neccessary.

    0 讨论(0)
提交回复
热议问题