Added some logic to the makefiles for creating directories.
Added some logic to the makefiles for creating directories.

This lets us build outside of the source tree. There is still more work
to do; in particular, make clean should clean up the generated
directories. This needs to be done carefully.

zenhack/zero,zenhack/zero,zenhack/zero