update makefile to handle dependencies