OS detecting makefile

There are many good answers here already, but I wanted to share a more complete example that both: doesn’t assume uname exists on Windows also detects the processor The CCFLAGS defined here aren’t necessarily recommended or ideal; they’re just what the project to which I was adding OS/CPU auto-detection happened to be using. ifeq ($(OS),Windows_NT) … Read more