Added automatic dependencies to makefile