API update.
Bugfix in gcc autodeps (.d generation).

+ The previous method didn't put the obj dir into the .d; that caused missing
rebuilds due .h updates.

example:
$ touch core/ehal.h
$ make

Didn't cause a rebuild of the files that depended core/ehal.h.