Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Makefile generator
Makefile generator [message #115114] Wed, 11 August 2004 20:33 Go to next message
Eclipse UserFriend
Originally posted by: iffs.bol.com.br

Hi!!

I have some questions when creating a new plugin with CDT's Managed Build
System. Does CDT has a default Makefile Generator, or I will have to use

org.eclipse.cdt.managedbuilder.makegen.gnu.GnuMakefileGenera tor

in my new target?? What about the scannerInfoCollector (also in my new
target) and dependencyCalculator (in my new tools)??

Thanks!!
Igor Felix
Re: Makefile generator [message #115153 is a reply to message #115114] Wed, 11 August 2004 21:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: iffs.bol.com.br

Hi!!

I've found the scannerInfoCollector, and I think I won't be needing the
dependencyCalculator. But the problem with GnuMakefileGenerator is that I
need to execute a program I've written before linking the targets, and the
generator calls my program with more arguments than necessary, then an
error occurs.

Of course, I can ignore these extra arguments at my program, but I think
this is not an elegant solution. A default makefileGenerator, which only
executes the commands I've asked, would be a lot better.

At the worst case, I could create a new Makefile generator, based on
GnuMakefileGenerator, but this will take a lot of time (and I don't have
this time).

So, at my new target, what makefile generator should I use??

Thanks!!
Igor Felix
Re: Makefile generator [message #115166 is a reply to message #115114] Wed, 11 August 2004 21:18 Go to previous message
Sean Evoy is currently offline Sean EvoyFriend
Messages: 195
Registered: July 2009
Senior Member
Igor,
Until I get a chance to update the rest of the docs, you are going to
have to do some exploring on your own. Quickly, a target now allows you
to specify a class that you supply that implements the
IManagedBuilderMakefileGenerator interface. The generator for the Gnu
toolchain is a good place to start getting a sense of what needs to be
done in a replacement generator.

Anyway, the builder will instantiate your generator instead of the Gnu
generator if you define it in your target. Your class has to be able to
generate or regenerate files for build and rebuild (the incremental
project builder will call different methods on the generator depending
on what triggered it to run). This may amount to the same thing in your
case, I don't know. The generator also has to be able to create the
source-level dependencies. The problem of figuring out source-level
dependencies is described in the doc.

The builder will instantiate your makefile generator.
It will ask it to (re)generate the build file.
It will spawn an external process and call whatever build command is
spec'd for the target.
It will ask your generator to (re)generate dependencies.

ScannerInfoCollector is a solution to automatically calculating the
built-in compiler includes paths and defines. You can tell the MBS about
a class it can ask for these, or hard-code them in the tool settings.
It's your choice.


Sean

Igor Felix wrote:
> Hi!!
>
> I have some questions when creating a new plugin with CDT's Managed Build
> System. Does CDT has a default Makefile Generator, or I will have to use
>
> org.eclipse.cdt.managedbuilder.makegen.gnu.GnuMakefileGenera tor
>
> in my new target?? What about the scannerInfoCollector (also in my new
> target) and dependencyCalculator (in my new tools)??
>
> Thanks!!
> Igor Felix
>
Previous Topic:CDT Managed Build System
Next Topic:Is there a profiler plugin for C/C++ code?
Goto Forum:
  


Current Time: Thu Dec 26 12:18:06 GMT 2024

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

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

Back to the top