Refactor makefile to expose engine output