libpop.a is built from a bunch of C files which don't need to be built multiple times, thus we might as well properly do the build, rather than use the bash-based mklibpop script.
You'll note that the header dependencies are a bit over the top, but better than not tracking them at all.
A better approach that should be taken in future is to make Makfiles for each target object and include these. A good description of this approach is here: https://news.ycombinator.com/item?id=15060207
(note this is a simpler version than that proposed in the Make manual which has some awful sed trickery and double expansion: https://www.gnu.org/software/make/manual/html_node/Automatic-Prerequisites.html)
libpop.a
is built from a bunch of C files which don't need to be built multiple times, thus we might as well properly do the build, rather than use the bash-basedmklibpop
script.You'll note that the header dependencies are a bit over the top, but better than not tracking them at all. A better approach that should be taken in future is to make Makfiles for each target object and include these. A good description of this approach is here: https://news.ycombinator.com/item?id=15060207 (note this is a simpler version than that proposed in the Make manual which has some awful sed trickery and double expansion: https://www.gnu.org/software/make/manual/html_node/Automatic-Prerequisites.html)