10 messages in com.mysql.lists.plusplusRe: makefile hacking| From | Sent On | Attachments |
|---|---|---|
| Warren Young | 28 Sep 2005 06:52 | |
| Imperio59 | 28 Sep 2005 07:16 | |
| Patrick McMichael | 28 Sep 2005 07:24 | |
| Warren Young | 28 Sep 2005 07:30 | |
| Patrick McMichael | 28 Sep 2005 07:47 | |
| Warren Young | 28 Sep 2005 08:05 | |
| Imperio59 | 28 Sep 2005 17:05 | |
| Patrick McMichael | 29 Sep 2005 06:47 | |
| Thomas Werth | 10 Oct 2005 01:24 | |
| Warren Young | 10 Oct 2005 10:27 |
| Subject: | Re: makefile hacking![]() |
|---|---|
| From: | Warren Young (mysq...@etr-usa.com) |
| Date: | 10/10/2005 10:27:55 AM |
| List: | com.mysql.lists.plusplus |
Thomas Werth wrote:
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.
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.
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.




