我正在为我的c/C++项目学习cedet。但是,我在制作项目时遇到困难。Cedet Help:配置“Make”项目
说我有一个文件 main.cpp中,看起来像这样
//main.cpp
#include "temp.h"
blah... <c++ code>
,我有temp.h和temp.cpp
看起来像这样
//temp.h
some declarations
//temp.cpp
some definitions
然后在emacs + cedet中,我做了ede-new
,然后使用ede-new-target
添加一个目标main并添加main.cp主要。
然后我写temp.h和temp.cpp并添加temp.cpp到目标温度。
我选择的所有目标的程序生成此Project.ede文件
;; Object Test
;; EDE project file.
(ede-proj-project "Test"
:name "Test"
:file "Project.ede"
:targets (list
(ede-proj-target-makefile-program "main"
:name "main"
:path ""
:source '("main.cpp")
)
(ede-proj-target-makefile-program "temp"
:name "temp"
:path ""
:source '("temp.cpp")
)
)
)
现在,当我使用义德-PROJ-再生生成makefile文件,它创建生成main.o和临时Makefile文件。
但是make会失败,因为生成的Makefile不能识别main.cpp对temp.cpp的依赖。我如何告诉cedet EDE来识别此依赖关系?我在这里做什么错了?
其次,我如何告诉它我不想main.o,因为这是最终的目标程序/可执行文件而不是目标文件。
由于最近的EDE问题,我创建了EDE手册的快速入门部分。你可以在这里看到内置的机器人版本:http://www.randomsample.de/cedetdocs/ede/ede/Quick-Start.html – Eric