Refactor routine which generates Makefile.
Create static lib for non-C hosts.

Compile core files and marshall the objects into a static archive, which
can then be presented to host build systems as a library.