made Makefile more generic