Automatically generate makefile dependencies
Refine Makefile