Make Makefile more general.