[oi-dev] Can compilation place binaries separately from sources?

Jim Klimov jimklimov at cos.ru
Thu Jun 28 19:12:47 UTC 2012


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




More information about the oi-dev mailing list