Eclipse 中的 MakeFile 是什么?来自文档:
A makefile is a text file that is referenced by the make command that describes the building of targets, and contains information such as source-level dependencies and build-order dependencies. The CDT can generate a makefile for you, such projects are called Managed Make projects. Some projects, known as Standard Make projects, allow you to define your own makefile.
但是解释并不能帮助我理解 MakeFile 是什么。我正在从 VisualStudio/C# 迁移到 Eclipse/C++。 MakeFile 是否类似于 Visual Studio 的元数据?什么时候需要编写 MakeFile,为什么除了 C++ 代码还需要它?
[编辑] 我曾经在 Windows 上使用 VS 和 C# 进行开发。现在在 Mac 上试用 Eclipse/C++。我从来没有在 Linux 上构建任何人。所以到目前为止我读到的答案根本无法解释任何事情。
最佳答案
用最简单的术语来说,makefile 是构建程序的文件。这些通常从命令行使用。如果您曾经在 Linux 上构建过某些东西,您可能已经运行过 ./configure ;制作 ;进行安装。您正在那里使用 makefile。
关于c++ - Eclipse 中的 MakeFile 是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10577935/