Updated Makefile using correct dependency tree