Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Adding the _g on a library reference.: (5 Items)
   
Adding the _g on a library reference.  
I'm using QNX's build system for some projects.  Which, by the way, I'm starting to get a handle on it, and must say 
that I am begining to appreciate how it works.  I still get heartburn from time to time because makefiles have never 
really been something I liked....but I digress..

I have a library in a.be.g and a.be.  In a QNX build project hat contains a be and be.g directory, I would like common.
mk to be able to choose the correct suffix to a library.

Right now I have in the binary's common.mk file the following line:

LIBS += mylib.

Without having to change mylib to mylib_g manually, how do I get the system to fine mylib_g?

Thanks
Kevin
Re: Adding the _g on a library reference.  
BTW the:

http://www.qnx.com/developers/docs/6.4.0/neutrino/prog/make_convent.html

is in my shortcut bar, and I refer to it regularly, but I'm unable find where it talks about such a case, but then again
, I may be blind...

Thanks
Kevin
Re: Adding the _g on a library reference.  
For compiler you can't. Unless you say LIBS+= mylib_g
In IDE you can change "name" of the library thought to mylib (withou _g postfix) (it still will be in the be.g folder so
 you know it is debug).

Kevin Stallard wrote:
> I'm using QNX's build system for some projects.  Which, by the way, I'm starting to get a handle on it, and must say 
that I am begining to appreciate how it works.  I still get heartburn from time to time because makefiles have never 
really been something I liked....but I digress..
> 
> I have a library in a.be.g and a.be.  In a QNX build project hat contains a be and be.g directory, I would like common
.mk to be able to choose the correct suffix to a library.
> 
> Right now I have in the binary's common.mk file the following line:
> 
> LIBS += mylib.
> 
> Without having to change mylib to mylib_g manually, how do I get the system to fine mylib_g?
> 
> Thanks
> Kevin
> 
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post29577
> 
Re: Adding the _g on a library reference.  
Change the line to

LIBS += mylib$(LIB_SUFFIX)

The $(LIB_SUFFIX) is populated inside .qnx_internal.mk
Re: Adding the _g on a library reference.  
thanks...
kevin