dbTalk Databases Forums  

makefile hacking

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss makefile hacking in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Thomas Werth
 
Posts: n/a

Default makefile hacking - 10-10-2005 , 03:25 AM






hi all,

just played around with makefiles. Goal was to get "d" into name of
debug lib.
Simple hack will do the work
change in makemake.bat this line :

echo cd lib ^&^& $(MAKE) BIN_DIR=debug all example_setup >> Makefile

to

echo cd lib ^&^& $(MAKE) LIB_BASE=mysqlppd BIN_DIR=debug all
example_setup >> Makefile

while playing around i noticed examples/makefile.vc of examples is not
on state to lib/makefile.vc

LibName is no var ( like mysql path, too) in examples. So if a user
changes var in lib/makefile.vc adaption of examples isn't done in same
way ( which is a k.o for my hack, else hack would do it work fine with
examples ,too ).


this message is just for information

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
Warren Young
 
Posts: n/a

Default Re: makefile hacking - 10-10-2005 , 12:29 PM






Thomas Werth wrote:
Quote:
just played around with makefiles.
There's a nonzero chance that we're moving to Bakefile as of v2.1. I
don't know for certain yet, because Bakefile isn't 100% suited to our
needs, and it isn't yet clear whether I can get patches into the main
source base. If I can't help improve it, its effective value goes way down.

Quote:
echo cd lib ^&^& $(MAKE) LIB_BASE=mysqlppd BIN_DIR=debug all
example_setup >> Makefile
That overrides the naming policy for all build targets. I'm not sure
that's such a great idea. I'd be much happier if you changed only
Makefile.vc. Now that we're using GNU make, it shouldn't be hard to add
logic to change the library name at build time. My recommendation would
be to change the install target, rather than the build target, since
that will keep the dependency rules simple.

But again, don't spend a lot of time on this. All your work might well
be for naught.

Quote:
while playing around i noticed examples/makefile.vc of examples is not
on state to lib/makefile.vc

LibName is no var ( like mysql path, too) in examples. So if a user
changes var in lib/makefile.vc adaption of examples isn't done in same
way ( which is a k.o for my hack, else hack would do it work fine with
examples ,too ).
If I understand your meaning, your complaint is that there is more than
one place to change certain Makefile variables. To fix that, you could
possibly create a Makefile.vc in the project root, and update
makemake.bat so that it prepended that to lib/Makefile.vc and
examples/Makefile.vc when making the subdirectory makefiles.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.