add dependency generation to Makefile