Add function for getting header dependencies

Add a new function get_hdrs which will for each object request
a build of the corresponding .d Makefile with header dependencies
and also include this file if it exists.

Signed-off-by: Nils Carlson <pyssling@ludd.ltu.se>