在Eclipse CDT中指定外部Makefile选项 [英] Specifying external Makefile options in Eclipse CDT

查看:115
本文介绍了在Eclipse CDT中指定外部Makefile选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想(暂时)将一个C ++项目从Netbeans迁移到Eclipse(以便使用Eclipse的并行调试器).到目前为止,我已经在Eclipse中创建了一个使用现有代码的Makefile项目"项目,该项目引用了Netbeans项目的Makefile/目录.但是,Netbeans项目接受例如config选项

I'd like to (temporarily) migrate a C++ project from Netbeans to Eclipse (in order to use Eclipse's parallel debugger). So far I've created a "Makefile project with Existing Code" project in Eclipse that references the Netbeans project Makefile/directory. However the Netbeans project accepts config options for example

make -f Makefile CONF=GNU_Debug

如何在Eclipse中将此选项传递给Makefile?

How can I pass this option to the Makefile in Eclipse?

Eclipse版本 面向并行应用程序开发人员的Eclipse-Mars.2版本(4.5.2)

Eclipse version Eclipse for Parallel Application Developers -- Mars.2 Release (4.5.2)

推荐答案

您可以在项目属性对话框中更改默认的make调用:

You can change the default make call in the projects properties dialog:

我的版本:

版本:Mars.1发行版(4.5.1)

Version: Mars.1 Release (4.5.1)


请注意,-f Makefile应该是多余的.


Note that the -f Makefile should be superfluous.

这篇关于在Eclipse CDT中指定外部Makefile选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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