use BASEDIR instead of PWD in Makefile