Learn Makefiles with the Tastiest Examples
makefiletutorial.com
makefiletutorial.com
It takes sometimes significant work to add a dependency and make it compile. The dependencies have their own dependencies. And their own build system. Which might not be the same one you're using.