Page 1 of 1

bakefile problem

Posted: Fri May 18, 2007 1:14 pm
by folowing
I use bakefile to generate makefiles. and I want the object files were made into a folder named as "OBJ", in oder to seperate from the sources. I have read the doc , but can't find any idea about it.

Any ideas?


Posted: Fri May 18, 2007 1:57 pm
by Ugly!
Mmm...first of all, there is no reason why you should have the sources mixed with the objs if you are using bakefile. Second, the place where objs are placed may vary from compiler to compiler.

Anyway, I think your are not using bakefiles as good as you can.
I use bakefiles for my wx projects using the templates on wxCode (there a lot of predefines templates easy to use).
Download (CVS) the "build" folder and get a bakefile file from a project (maybe mine: wxActiveRecordGenerator) to see how it's done.

If you have any questions (you'll probably will) send a mail to the wxCode mail list.

Regards, Mat

Posted: Sun May 20, 2007 5:33 am
by biplab
Use the following code at the beginning of <makefile> tag.

Code: Select all

<set var="BUILDDIR">./OBJS</set>