Updated makefile with dependencies