c++ - Eclipse 中的 MakeFile 是什么?

标签 c++ eclipse makefile

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。

更多信息... https://en.wikipedia.org/wiki/Make_(software )

关于c++ - Eclipse 中的 MakeFile 是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10577935/

相关文章:

python - 在 OS X 上安装 memcached 以与 django (python) 一起使用

bash - 如何在 Makefile 中使用 eval

linux - pbuilder-dist xenial 构建失败

c++ - 链接器错误 LNK1109

c++ - 如何用 C++/Qt 解析 HTML?

android - Eclipse Android 插件 -- libncurses.so.5

java - 在 Eclipse 中生成随机数时崩溃

c++ - 宏与模板结合生成Object

c++ - 基类中的静态变量是否由所有派生类共享?

java - eclipse : Cannot generate a serial version ID