Not exactly creative but KISS. I use only Makefile for a C project that compiles on both Linux, BSD and Mac OS.
Point being that autoconf is often overkill for smaller C projects.
Point being that autoconf is often overkill for smaller C projects.
https://github.com/official-stockfish/Stockfish/blob/master/...
We're doing it by calling a PLATFORM and using an IF statement in the makefile: make PLATFORM=HOST for example. The makefile then replaces the compiler variable, compiler flags, linker, flags, etc.