replaced build script with a Makefile