[Omake] Re: Out-of-tree builds
Phil Endecott
spam_from_omake at chezphil.org
Wed Jan 24 13:10:26 PST 2007
>> Has any thought been given to using omake for out-of-tree builds of C
>> / C++ programs? My motivation is supporting cross-compilation to
>> multiple architectures from the same source tree, e.g.
>
> With OMake's design, it is not possible to do real out-of-tree builds,
> if you mean outside-the-project-dir. However, it is possible to to
> in-tree builds with separate build directories for different build
> hosts.
>
>> |
>> +-- src
>> |
>> +-- build_x86
>> |
>> +-- build_arm
>
> This seems to be inside the tree, so it should work fine. As said in
> another answer, you need to look at the vmount feature.
Actually one reason for considering doing this with omake is that I
don't much like gmake's VPATH feature. Specifically, in gmake I can't write
build/%.o: src/%.cc
${CXX} .....
because it doesn't allow / in the dependencies. So I am forced to set
VPATH to include the src directory and have a %.o: %.c rule in the
build directory. But this fails if, by any chance, you have a .o file
in the "wrong" place, e.g. left over from an abandoned in-the-src-dir build.
So, with omake, can I have rules that include directories, as I've
suggested above?
Cheers,
Phil.
More information about the Omake
mailing list