added function to generate makefile based on edam.mk