2 ms·
Over the past 30 years or so, build tools for C and C++ programs have converged to what you see today. For example, with GCC you can use the -M options, and th
by klodolph 8y ago
Over the past 30 years or so, build tools for C and C++ programs have converged to what you see today.
For example, with GCC you can use the -M options, and then you can -include the result in your makefile. This was not always possible. You had to manually specify the .h files for every .c, and if you omitted one, you could get a successful build but a broken program!
Then consider the process of building a shared library, which is different on different platforms, but if you restrict yourself to GCC on Linux with GNU Binutils it’s damn easy.
There are a few other, minor failings of Make. But you’re right, it’s very comprehensible and straightforward. I still say that it’s a low bar, though, by modern standards.