[oi-dev] Can compilation place binaries separately from sources?
Andreas Stenius
andreas.stenius at astekk.se
Thu Jun 28 20:08:45 UTC 2012
Hi,
I know nothing about the compilation you are talking about. But, if it
is using the gnu autotools, especially the configure script,
then your current directory becomes your top_builddir, which does not
have to be the same dir as where the configure script is.
So you can:
$ mkdir build_1 && cd build_1
$ ../path/to/srcs/configure --with-my-options
this will create your Makefiles in the current dir, with references to
src dir as appropriate.
And you can have any number of build dirs, obviously.
Hope this works in your case ;-)
//Andreas
2012/6/28 Jim Klimov <jimklimov at cos.ru>:
> Hello world,
>
> Is there some simple method, perhaps a Make option, to
> create built files (objects, libraries, programs, etc.)
> in a separate filesystem tree than the sources reside in?
>
> For example, I want to build the same code with different
> compilers and/or compiler settings. The (clumsy) way I know
> of is to maintain separate workspace clones and do builds
> inside them. I would prefer to have one piece of source and
> several directories of binaries produced by different build
> scripts, and several resulting package repos. (I think that
> something like this may have already been done to support
> Debug/NonDebug builds alongside each other).
>
> Is that easily possible? Yes/No/How? :)
>
> Thanks,
> //Jim Klimov
>
> _______________________________________________
> oi-dev mailing list
> oi-dev at openindiana.org
> http://openindiana.org/mailman/listinfo/oi-dev
More information about the oi-dev
mailing list