updated makefile generation