1 2 3 4 5 6 7 8 9 10 11 12 13 14
#Detect what kind of system we're on ifeq ($(OS), Windows_NT) UNAME:=Windows else UNAME:=$(shell uname -s) endif ifeq ($(UNAME), Windows) include Makefile.win endif ifeq ($(UNAME), Linux) include Makefile.nix endif