> On 16 Jun 2015, at 23:23, Andreas Rottmann <[email protected]> wrote: > > From: Andreas Rottmann <[email protected]> > > Having subdir-objects enabled is recommended by automake 1.14, to avoid > future incompatibilities. > > However, adding that option breaks out-of-tree builds, and also seems to > break "make distclean" for in-tree builds. The reason is that > apparently, automake with subdir-objects enabled cannot cope with source > files in a different, non-child directory. To avoid that, we simply > compile the files referenced in this way into a static library in their > own source directory, and instead of referencing the source files, we > link against that library. > > Besides making the build system a bit more future proof, this change > also potentially enhances build times, as it reduces the number of > compiler invocations, in exchange a slight increase of "ar" invocations.
That automake behavior is shameful. What would be the effort to get rid off the recursive make?
