News for hackers. Stuff that matters.
Re:A Simple Makefile for Medium-Sized C/C++ Projects by revelation on Friday August 26, 2016 @10:22AM (#12366450)
This is how we got into this mess in the first place. "Surely it can't be very difficult, let me just add this.."
Re:A Simple Makefile for Medium-Sized C/C++ Projects by anjbe on Friday August 26, 2016 @10:36AM (#12366555)
Perhaps, but I suspect writing a portable Makefile is not as difficult as you think.

Speaking as a packager, I have to patch many CMake build systems for portability issues. And don’t even get me started on SCons. Autotools is better in that regard, but has many flaws of its own.

Here’s an example of a portable Makefile I’ve contributed to a project which handles the common packaging issues (staging directories, cross‐compilation, parallel builds): https://github.com/sinamas/gambatte/pull/6/commits/8d6fffc2b...

Compared to the original build system (two SConstructs): https://github.com/sinamas/gambatte/blob/master/gambatte_sdl... https://github.com/sinamas/gambatte/blob/master/libgambatte/...