write a real makefile