2011-06-09 97 views
0

我無法搞清楚如何「合併」我的兩個項目。野牛/ flex解析器進入eclipse

- 我有一個項目由一個野牛/ flex解析器及其源代碼和它自己的makefile組成。

- 我有一個eclipse項目(有自己的源代碼),自動生成一個自動生成文件。

我迄今所做的:
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? (我不能找到合適的位置,優先做的)

問候

回答

1

其實嘛解決方案很簡單:

--right單擊該項目

--under C++ Build標籤 --uncheck生成自動生成文件

現在,您所擁有的makefile將保留,您將可以修改它而不會覆蓋它。

唯一的問題是,你將不得不手動添加你的eclipse項目中的每個新文件(即不能有自動生成部分的eclipse項目和手動部分的解析器)