There is most likely a better way to do this. I modified the teensy3 Makefile so I can run it from a project directory. You should change line 16 in Makefile to be the base directory of where arduino-x.x.x is installed.