# Find the OS platform using the uname command. Linux := $(findstring Linux, $(shell uname -s)) MacOS := $(findstring Darwin, $(shell uname -s)) Windows := $(findstring NT, $(shell uname -s)) # For Windows, add the .exe extension ifdef Windows hello: hello.c clang -std=c11 -Wall -pedantic -g hello.c -o hello.exe # For Linux/MacOS, include the advanced debugging options else hello: hello.c clang -std=c11 -Wall -pedantic -g hello.c -o hello \ -fsanitize=undefined -fsanitize=address endif