importing makefiles [message #92751] |
Tue, 27 January 2004 00:04 |
Eclipse User |
|
|
|
Originally posted by: nobody.nowhere.anywhere
Using Eclipse 3.0M6, CDT 2.0M6 on Win2k:
Trying to learn the CDT by creating a standard C++ project,
and importing existing makefiles. The help documents say
that for a standard project I must supply the makefiles.
That's good as I already have them for g++/cygwin. But...
How do I get the project to recognize these makefiles? How
do I get the CDT to extract the targets inside the makefiles?
Haven't found anything in the docs which describe how to do
this. I'll appreciate any suggestions you can give me.
....Tom Hilinski
|
|
|
Re: importing makefiles [message #92799 is a reply to message #92751] |
Tue, 27 January 2004 15:36 |
Eclipse User |
|
|
|
Originally posted by: tstephen.milkyway.gsfc.nasa.gov
Hi,
It's fairly straightforward to get the system to recognize your make
files and build the targets in them. I use eclipse 2.1.2 with CDT 1.2
but it sould apply to the newer one as well. Here's what you need to do:
1) Open a "Make Targets" view, if you don't have one opened already. It
shows up as a tab in the same frame as the "Outline" view. If it isn't
open you can open it from Windows->Show Views->Other and then pick Make
Targets under the Make heading. This should bring up a list of all your
open Projects and their sub-directories.
2) Right click on the project or subdirectory where the makefile is
located and pick "Add Build Target". A dialog will pop up, fill in the
relevant values and click Create. This will add that make target to the
project.
3) To make the target just double click on the new make target and
you're off.
If your makefile is in the Project's root directory, then selecting
Project->Build All (ctrl-B) will either execute the default build target
or 'make all'. I not sure which it is as I don't actually use that
particular feature. Someone else would have to clarify that. (The build
environment for my project use CMT for configuration management and
building and has all the make files executed in a subdirectory instead
of the project's root directory). Of course if the default make target
is 'all' it doesn't really matter. The Project->Rebuild All option does
a 'make clean' and then 'make all' in the Project's root directory.
Hope that helps.
- Tom Stephens
Programmer/Analyst
GLAST Science Support Center
Tom Hilinski wrote:
> Using Eclipse 3.0M6, CDT 2.0M6 on Win2k:
>
> Trying to learn the CDT by creating a standard C++ project, and
> importing existing makefiles. The help documents say that for a standard
> project I must supply the makefiles. That's good as I already have them
> for g++/cygwin. But...
>
> How do I get the project to recognize these makefiles? How do I get the
> CDT to extract the targets inside the makefiles?
>
> Haven't found anything in the docs which describe how to do this. I'll
> appreciate any suggestions you can give me.
> ...Tom Hilinski
|
|
|
Re: importing makefiles [message #92830 is a reply to message #92799] |
Tue, 27 January 2004 20:31 |
Eclipse User |
|
|
|
Originally posted by: nobody.nowhere.anywhere
Thomas Stephens wrote:
> Hi,
> It's fairly straightforward to get the system to recognize your make
> files and build the targets in them. I use eclipse 2.1.2 with CDT 1.2
> but it sould apply to the newer one as well. Here's what you need to do:
<snip>
Thanks very much!
....Tom
|
|
|
Powered by
FUDForum. Page generated in 0.23303 seconds