write makefile