Update Makefile to automatically generate header dependencies