Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Confused about Standard Make and Managed Make projects and make stuff in general.
Confused about Standard Make and Managed Make projects and make stuff in general. [message #158048] Tue, 15 November 2005 16:37 Go to next message
Eclipse UserFriend
Originally posted by: me2.nowhere.com

I am confused about what specifically Eclipse does with the Standard
Make and Managed Make projects when I do builds and runs.

Lets say I've got a test project with a makefile:

============================================================ =
test.o: test.c
gcc test.c -o test.o

clean:
rm test.o
============================================================ =

Now, what happens when I press "build" in a "Standard Make" project.
What happens in the "Managed Make" project ?

In the managed make project there are settings for gcc, command line
options, etc. How are those options utilized ? Do I/should I be
replacing "gcc test.c -o test.o" with CC, CFLAGS, etc.

Next question...

I've got a C project that has a hierarchy of smaller projects in
subdirectories. Right now I only want to build and test a subproject,
yet I want to be working in the main project because in a bit I'll need
to build a project that uses my project.

How do I configure the Working Set for the Build to use a different
makefile or does it just use the makefile from the directory I select
when setting up the Working Set ?

Thanks in advance.
Re: Confused about Standard Make and Managed Make projects and make stuff in gen [message #158073 is a reply to message #158048] Tue, 15 November 2005 22:02 Go to previous message
Eclipse UserFriend
Originally posted by: bjcbell.gmail.com

To answer your first question,

To use a makfile that you have written you must use standard make.
Managed make will write a makefile for you based on the settings you have
selected in C/C++ Build options and which files you have included/excluded
from your build.

I personally don't use subprojects so I don't know how to answer your
second question. Sorry about that.
me2 wrote:


> I am confused about what specifically Eclipse does with the Standard
> Make and Managed Make projects when I do builds and runs.

> Lets say I've got a test project with a makefile:

> ============================================================ =
> test.o: test.c
> gcc test.c -o test.o

> clean:
> rm test.o
> ============================================================ =

> Now, what happens when I press "build" in a "Standard Make" project.
> What happens in the "Managed Make" project ?

> In the managed make project there are settings for gcc, command line
> options, etc. How are those options utilized ? Do I/should I be
> replacing "gcc test.c -o test.o" with CC, CFLAGS, etc.

> Next question...

> I've got a C project that has a hierarchy of smaller projects in
> subdirectories. Right now I only want to build and test a subproject,
> yet I want to be working in the main project because in a bit I'll need
> to build a project that uses my project.

> How do I configure the Working Set for the Build to use a different
> makefile or does it just use the makefile from the directory I select
> when setting up the Working Set ?

> Thanks in advance.
Previous Topic:Debug
Next Topic:CDT complains about wrong / missing includes
Goto Forum:
  


Current Time: Fri May 09 13:07:06 EDT 2025

Powered by FUDForum. Page generated in 0.03078 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top