Build: clean up build system, use shared Makefiles #889
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This unifies all of the Makefiles and install scripts so everything depends on the root-level
Makefile.common
for setting GCC defines and options, and everything is built with-Werror
now. This introduces a failure due to #888 and the ones I mentioned on IRC.This makes it possible to build everything with just
make
from the top-level directory, andmake install
to install things toBase/
, though it still needsKernel/build-root-filesystem.sh
to copy other things into it. It should handle dependencies properly so touching one header will properly rebuild just what is needed with another top-levelmake
. The tests being done inAK/Tests
can be triggered withmake test
and everything can be cleaned withmake clean
.I think
Kernel/makeall.sh
can be removed after this and probably an update ofReadMe.md
is needed to reflect new build instructions.馃巺