New Makefiles for module dependencies

closes #4385