Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Using makefile.init to influence linker settings
Using makefile.init to influence linker settings [message #169670] Tue, 16 May 2006 07:53 Go to next message
Eclipse UserFriend
Originally posted by: Han . Hoekstra . WirelessValue . Nl

Hello,

I am wondering if I can use the 'makefile.init' to get conditional linking.
My situation is the following, I have 3 products that are largely the same,
except for a single step in handling incomming messages. So my idea was to
have them all in the same managed make project and use a define to
distinguish between the 3 'versions'. But there is one small problem, and
this is that 2 'versions' require special linker switches to enable external
memory (I'm using an ATMega128), but the 3rd version does not have external
memory and therefor does not require those linker switches.

So my question is, can I use the makefile.init to provide aditional linker
switches for the external memory and also use that file to create the
compiler define to select the 'version' I want ?
What I have in mind would be something like specifying which version I need
on the first line of the file and then provide the correct compiler/linker
switches base on that makefile variable...

If anyone knows if this is possible, or knows another way of doing this,
please let me know.

Greetings,
Han
Re: Using makefile.init to influence linker settings [message #170129 is a reply to message #169670] Sun, 21 May 2006 19:23 Go to previous message
Eclipse UserFriend
Originally posted by: newsgroups.snipah.com

Hello Han,

Sorry i don't know about this makefile.init thing.

But if you understood right you have 3 different setups with the same
sources. You need to set a define and some linker switches.

So I think the easiest way is to create 3 different configurations like
"Release" and "Debug" but for "Product1", "Product2" and "Product3"
where you set this compiler switch -D .. and also the specific linker
options ..

ciao
Enrico
Previous Topic:NewBee path / project question
Next Topic:C++ class hierarchy view
Goto Forum:
  


Current Time: Fri Jul 18 18:31:28 EDT 2025

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

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

Back to the top