Jon Granrose wrote:
> I'm ok with people changing the build system to make embedding easier to
> build and maintain as long as we get some warning and it isn't
> noticeably slower before.
The major difference between embedding and client builds is the modules listed
in the DIRS macro. Find a way to conditionally set that depending on the build
target (build_all/build_embed) and it should be straightforward to merge the
makefiles. There are also some issues with certain modules only being needed by
embedding for exporting headers so the DIRS list would be slightly different
during export and build phase.