add makefile and supporting scripts