Updated makefile to use 'BASEDIR'