【问题标题】:How to autogenerate/add/edit makefiles to a Makefile Project with Existing Code如何使用现有代码自动生成/添加/编辑 Makefile 到 Makefile 项目
【发布时间】:2012-03-20 15:54:44
【问题描述】:

我的问题与此有关: Eclipse c++ How to work with existing makefile

基本上我有相同的结构(没有配置)。我有 lib1、lib2、lib3 等子文件夹……它们每个都有一个 makefile。然后我已经有一个子文件夹之外的 makefile 调用我的构建步骤。

我想要做的是添加一个新的子文件夹(例如 lib4)并让 Eclipse 为这个子文件夹创建 makefile 并编辑“main”makefile。

我使用适用于 64 位 Linux 的 Eclipse Indigo SR2。

我想知道这对于 Eclipse 是否可行,或者是否必须手动创建/编辑 makefile?

任何帮助表示赞赏:)

【问题讨论】:

    标签: c++ makefile eclipse-indigo


    【解决方案1】:

    这是使用 Autotools 的经典场景。 (或者自己编写整个配置脚本,这通常会更简单。)

    我从未在 Eclipse 中使用过它,但稍作搜索发现: http://www.eclipse.org/linuxtools/projectPages/autotools/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-09-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-09-10
      • 1970-01-01
      • 1970-01-01
      • 2023-03-03
      相关资源
      最近更新 更多