Makefile and file preparation