Write makefile