From: Francesco M. <f18...@ya...> - 2005-09-16 10:03:49
|
Hi all, I would like to inform everyone that I finally managed to create a good way to support "autoconf" format, too with wxCode bakefiles. The new configure.ac for a wxCode component looks like: AC_INIT([wxXml2], [1.5], [fr...@so...]) m4_include(../../../build/bakefiles/wxcode.m4) AM_WXCODE_INIT AM_OPTIONS_WXCONFIG AM_OPTIONS_WXPRESETS AM_WXCODE_CHECKS([2.4.0]) # 2.4.0 is the minimum required version of wx AM_WXCODE_END (see wxcode/build/bakefiles/configure.ac for more info). I've updated wxcode/build/bakefiles/readme.txt with a lot of details it was missing before. Also, the new Bakefiles.bkgen file tells bakefile to put "Makefile.in" in the root folder of your component so that a typical components will have the following makefiles: build\makefile.vc for MSVC (nmake) build\makefile.gcc for Mingw (mingw32-make) build\makefile.wat for Watcom (wmake) build\makefile.bcc for Borland (make) Makefile.in used by configure script to provide the "Makefile" under Unix configure configures the Makefile.in doing the right substitutions and creates "Makefile" which is much more in "unix" style. I found the way to keep all other unix stuff (config.sub, config.guess, *.m4, etc) in build\ which is much more clean than having these files in the root folder. I took the freedom to update all the Bakefiles.bkgen files of the components. If you need help with your component bakefiles, please ask NOW until I have some free time ;) Francesco |