add makefile, remove goto