Alexandre Duret-Lutz wrote:
>
> >>> "Dean" == Dean Hoover <[EMAIL PROTECTED]> writes:
>
> [...]
>
> Dean> Another thing you could do is make multiple build directories
> Dean> and always make in a certain way in them. In other words, you
> Dean> could:
>
> Dean> mkdir debug-build opt-build
> Dean> cd debug-build; $top_srcdir/configure; make debug; cd ..
> Dean> cd opt-build; $top_srcdir/configure; make; cd ..
>
> PFE (http://pfe.sourceforge.net/) seems to setup things in a
> way which is close to Shameek's request (it uses Debug/$arch/ and
> Release/$arch/ build directories). Maybe you can draw some
> ideas from that package.
>
Well, there are a lot more weird things beyond the needs of most people,
buried under some weird assumptions, f.e. here's a little snippet from
the configure.in, it' soooooo convenient ;-)
case `pwd` in # implicitly add -DNDEBUG if in path with Release
*/Release/*) OPTIM="-DNDEBUG $OPTIM" ;;
*/Debug/*) DEBUG="-DDEBUG $DEBUG" ;;
esac
anyway, there are indeed multiple versions in different subdirectories
of the very same sources, so it may possibly give a few pointers. It
did take some time to figure out how to do it correctly, well, now it
seems to be rock stable :-))
cheers,
-- guido http://PFE.sourceforge.net
31:GCS/E/S/P C++$++++ ULHS L++w- N++@ d(+-) s+a- h.r(*@)>+++ y++ 5++X-