Eclipse中Makefile项目的构建步骤 [英] Build Steps for Makefile Project in Eclipse

查看:494
本文介绍了Eclipse中Makefile项目的构建步骤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Eclipse构建一些用Makefile构建的现有软件(用C编写)。因此,我在Eclipse中创建了一个 Makefile项目。

I am trying to use Eclipse to build some existing software (written in C), which is built with a Makefile. For this reason I created a 'Makefile project' in Eclipse.

但是,我只是在 C / C ++ Build / Settings菜单中发现了请参见二进制解析器和错误解析器标签。但是,我确实需要构建步骤选项卡,因为我还需要添加一个构建后命令。

However, I just found out, the in the 'C/C++ Build / Settings' menu, I only see the 'Binary Parsers' and 'Error Parsers' tabs. However, I really need the 'Build Steps' tabs, because I also need to add a post-build command.

如何显示构建步骤选项卡在我的项目中?

How can I make the 'Build Steps' tab appear in my project?

推荐答案

您应该将这些步骤包括在makefile中。缺省的Eclipse C ++项目中包含构建前和构建后步骤的原因是,在这种情况下,Eclipse会自动生成makefile,因此,除了构建代码外,如果您想做任何事情,都需要单独进行。但是,如果您自己创建Makefile,则可以在其中包含构建前和构建后的步骤。

You should include those steps in the makefile. The reason pre-build and post-build steps are included in the default Eclipse C++ projects is that in that case Eclipse generates the makefile automatically, so if you want to do anything apart from building your code, you need to do it separately. But if you create the Makefile yourself, then you can include pre- and post-build steps in it.

这篇关于Eclipse中Makefile项目的构建步骤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆