makefile: Convert to non-recursive make files.
https://embeddedartistry.com/blog/2017/4/9/recursive-make-considered-harmful
> There are numerous problems with recursive make, and they are usually
> observed daily in practice. Some of these problems include:
>
> * It is very hard to get the order of the recursion into the
> sub-directories correct. This order is very unstable and frequently
> needs to be manually “tweaked.” Increasing the number of
> directories, or increasing the depth in the directory tree, cause
> this order to be increasingly unstable.
>
> * It is often necessary to do more than one pass over the sub-
> directories to build the whole system. This, naturally, leads to
> extended build times.
>
> * Because the builds take so long, some dependency information is
> omitted, otherwise development builds take unreasonable lengths of
> time, and the developers are unproductive. This usually leads to
> things not being updated when they need to be, requiring frequent
> “clean” builds from scratch, to ensure everything has actually been
> built.
>
> * Because interdirectory dependencies are either omitted or too hard
> to express, the Makefiles are often written to build too much to
> ensure that nothing is left out.
>
> * The inaccuracy of the dependencies, or the simple lack of
> dependencies, can result in a product which is incapable of building
> cleanly, requiring the build process to be carefully watched by a
> human.
>
> * Related to the above, some projects are incapable of taking
> advantage of various “parallel make” implementations, because the
> build does patently silly things.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
1 file changed