如何将Eclipse托管的CDT项目转换为Makefiles [英] How to convert an Eclipse managed cdt project into Makefiles

查看:170
本文介绍了如何将Eclipse托管的CDT项目转换为Makefiles的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在Eclipse上开发的托管C项目,我想将此项目转换为Makefile。

I have a managed C project developed on Eclipse and I would like to convert this project into Makefiles.

我在调试文件夹中找到了Eclipse已经生成的Makefile,但是我在文件中看到一条警告,提示我不要编辑此文件。

I found the Makefiles already generated by Eclipse in debug folder but I saw a warning in the file saying that I should not edit this file.

如何轻松转换项目?我不想从头开始。如果我通过修改已经生成的Makefile来启动它,那就太完美了。

How can I convert my project easily? I don't want to start from the scratch. It would be perfect if I start it by modifying already generated Makefiles.

我的构建设置是:


  • 属性->构建器


    • CDT构建器(勾选)

    • 扫描仪配置构建器(勾选)

    推荐答案

    我从未尝试过,但是原则上,它应该像用另一个名称(通常是 makefile Makefile ),然后在项目属性中进行一些更改-> C / C ++构建:

    I've never tried it, but in principle it should be as simple as making a copy of the generated makefile under another name (typically, makefile or Makefile), and making a few changes in Project Properties -> C/C++ Build:


    • 在构建器类型下,将内部构建器更改为外部构建器(如果还没有)

    • 取消选中自动生成Makefile

    • 确保 Build direc tory是包含您的makefile的目录

    • 如果需要,还可以在行为选项卡中自定义目标的名称

    • Under "Builder type", change "Internal builder" to "External builder" (if it isn't that already)
    • Uncheck "Generate Makefile automatically"
    • Make sure the "Build directory" is the directory containing your makefile
    • If you want, you can also customize the name of the target in the "Behaviour" tab

    这篇关于如何将Eclipse托管的CDT项目转换为Makefiles的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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