I've removed BASEDIR and switched to relative paths.
The dependency code still needs some work, correct?  Should be able to move it to its own directory (or the build directory) when its ready.