generalizing makefile to try to get it to work with BSDmake.