bison/flex 解析器进入 Eclipse
我无法弄清楚如何“合并”我的两个项目。
-- 我有一个由 bison/flex 解析器及其源代码和自己的 makefile 组成的项目。
-- 我有一个 eclipse 项目(有它自己的源代码),它本身可以自动生成 makefile。
到目前为止我所做的:
在 Eclipse 上
--click on my project>new Folder>link to folder in FS
--exclude the "main.cc" that is the main for the parser project when it is alone
现在我可以访问我的解析器项目文件
(cpf.y, token.lex, heading.h, makefile)
现在我想将我自己的 makefile 的有趣部分添加到我的 eclipse 项目的自动生成的 makefile 中? (我找不到正确的偏好位置来做到这一点)
问候
I'm having trouble figuring out how to "merge" two of my projects.
-- I've got a project consisting of a bison/flex parser with its sources and its own makefile.
-- I've got an eclipse project(with its own sources) with a automatic makefile generation on itself.
What I have done so far :
On Eclipse
--click on my project>new Folder>link to folder in FS
--exclude the "main.cc" that is the main for the parser project when it is alone
Now i have access to my parser project files
(cpf.y, token.lex, heading.h, makefile)
Now i would like to add the interesting parts of my own makefile to the auto-generated makefile of my eclipse project ?? (I can't find the right preference location to do that)
Regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实上,解决方案非常简单:
--右键单击项目
--在 c++ Build 标签下
--uncheck 生成自动 makefile
现在,您拥有的 makefile 将保留,您将能够修改它而不会覆盖它。
唯一的问题是您必须手动添加 Eclipse 项目中的每个新文件(即不能为 Eclipse 项目提供自动生成部分,而为解析器提供手动部分)
Well in fact the solution is pretty simple :
--right click on the project
--under the c++ Build tag
--uncheck generate automatic makefile
Now the makefile you had will stay and you will be able to modify it without having it overwritten.
The only problem is that you will have to add manually every new file from your eclipse project (ie can't have autogenerate part for the eclipse project and manual part for the parser)