added dependancy generation to Makefile