change Makefile for using as a git submodule