Separate common parts of Makefile into a separate file, to aid reuse in other projects