The problem comes in as soon as you need conditionals, which is likely when attempting to build something portably. There may be some gymnastics that can be done to write around the lack of their presence in standard make, but otherwise your options are: - Supply multiple makefiles targeting different implementations - Bring in autotools in all its glory (at this point you are depending on an external GNU package any…
To see what I'm talking about, see my proof of concept library that I've put together.
https://github.com/wahern/autoguess/blob/config-guess/config...