Adam Mallory <amallory@qnx.com> wrote:
“Wave++” <> wavexx@ngweb.it> > wrote in message news:a28n5k$pc$> 1@inn.qnx.com> …
I think you’ve mis-understood me - it wasn’t meant to say it was a bad idea,
just that I didn’t understand why you would want to use such a combination
of tools.
– long description, then 
I really like brain damaged build threes were you can export-import modules
by simply inserting a link to the requested module directory and even
compile the module completely separated from the project (the module itself
can become the project). Actually I was using a combination of autoconf
-automake and autogen to build this darn thing. The qnx structure is cool, but
however isn’t enough flexible for my purposes. I’ve found makepp as an
incredibly powerfull tool. You create a standard makefile (that contains
the base rules) and makepp itself computes the dipendencies. Since I work
with many architectures (and many different compiler flags) makepp allows also
to build a repository:
makepp -R …/sourcethree/
Actually builds your project in a different root so you can have different
versions of the same project at the same time without touching a line of
your makefile. Invaluable is also the possibility of having embedded perl
code. My makefiles are now 1/4 of theyr original size and much clearer.
And, yes, I’ve to use ifdefs along the code
)
Your tree might be smaller, but your overall source file size is bigger due
to the need for #ifdefs and that makes it harder to read.
As I’ve sayd, I don’t use such this feature intensively. Despite this I solve
this problem with global file ifdefs:
file1-le.c-begin
#ifdef LE
// code here
#endif
file1-le.c-end
file1-be.c-begin
#ifdef BE
file1-le.c-end
// code
#endif
file1-be.c-end
Under pure design terms the qnx structure is more clearer of course, but
this works without “doubling” the file size
.
Again, it’s not my intention to stiffle the advice / ideas in this group. I
simply asked a question regarding the rationale for using such tools, when
others already existed. Perhaps when posting new ideas on how to improve
productivity, a good solid example should follow. Otherwise you’ll get
people like myself who want to know why it’s a good idea. > 
–
Wave++