write Makefile