updated generic makefile