Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Multiple Configurations for Makefile Projects
Multiple Configurations for Makefile Projects [message #192580] Tue, 05 June 2007 10:57 Go to next message
Eclipse UserFriend
Is it possible with CDT 4.0 to have multiple build configurations for
"Makefile" projects. All I see is the "Default" configuration and I am
not seeing an obvious way to add another.

Background: I am using cmake to manage my makefiles and I have both a
Release and Debug Directories for building. Each Directory has its own
Makefile. So I was wondering if I can have 2 configurations in my
Makefile project, one that points make to Debug and one that points
Make to Release.

Thanks for any Help
Mike Jackson
Re: Multiple Configurations for Makefile Projects [message #192615 is a reply to message #192580] Tue, 05 June 2007 15:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bronson.rinspin.com

Mike Jackson wrote:
> Is it possible with CDT 4.0 to have multiple build configurations for
> "Makefile" projects. All I see is the "Default" configuration and I am
> not seeing an obvious way to add another.
>
> Background: I am using cmake to manage my makefiles and I have both a
> Release and Debug Directories for building. Each Directory has its own
> Makefile. So I was wondering if I can have 2 configurations in my
> Makefile project, one that points make to Debug and one that points Make
> to Release.
>
> Thanks for any Help
> Mike Jackson
>

Why not just add more make targets? Open up the Make Target view and
create as many targets as you want?
Re: Multiple Configurations for Makefile Projects [message #192632 is a reply to message #192615] Tue, 05 June 2007 22:08 Go to previous messageGo to next message
Eclipse UserFriend
On 2007-06-05 15:19:06 -0400, Scott Bronson <bronson@rinspin.com> said:

> Mike Jackson wrote:
>> Is it possible with CDT 4.0 to have multiple build configurations for
>> "Makefile" projects. All I see is the "Default" configuration and I am
>> not seeing an obvious way to add another.
>>
>> Background: I am using cmake to manage my makefiles and I have both a
>> Release and Debug Directories for building. Each Directory has its own
>> Makefile. So I was wondering if I can have 2 configurations in my
>> Makefile project, one that points make to Debug and one that points
>> Make to Release.
>>
>> Thanks for any Help
>> Mike Jackson
>>
>
> Why not just add more make targets? Open up the Make Target view and
> create as many targets as you want?

CMake (www.cmake.org) actually generates the makefiles so adding
anything to the makefile will get destroyed the next time the makefiles
are generated.

Thanks
Re: Multiple Configurations for Makefile Projects [message #192671 is a reply to message #192632] Wed, 06 June 2007 03:57 Go to previous message
Eclipse UserFriend
Mike Jackson wrote:

> On 2007-06-05 15:19:06 -0400, Scott Bronson <bronson@rinspin.com> said:
>
>> Mike Jackson wrote:
>>> Is it possible with CDT 4.0 to have multiple build configurations for
>>> "Makefile" projects. All I see is the "Default" configuration and I am
>>> not seeing an obvious way to add another.
>>>
>>> Background: I am using cmake to manage my makefiles and I have both a
>>> Release and Debug Directories for building. Each Directory has its own
>>> Makefile. So I was wondering if I can have 2 configurations in my
>>> Makefile project, one that points make to Debug and one that points
>>> Make to Release.
>>
>> Why not just add more make targets? Open up the Make Target view and
>> create as many targets as you want?
>
> CMake (www.cmake.org) actually generates the makefiles so adding
> anything to the makefile will get destroyed the next time the makefiles
> are generated.

Using CMake should not be a problem. I use autotools and started my
configure script with different options in different build directories:
$ mkdir debug && cd debug/ && ../configure CXXFLAGS="-g -O0"

After this I added my various Makefile targets to Make Target view and am
now able to call "make all" for both debug und release mode.

Jens
Previous Topic:extend cdt to support my compiler.
Next Topic:debugger: wont step thru during debug, only runs till end
Goto Forum:
  


Current Time: Tue Jul 22 07:24:56 EDT 2025

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

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

Back to the top