# Select proper Makefile for operating system. # The Windows version is built with the help of Cygwin. # In my case, I see CYGWIN_NT-6.1-WOW so we don't check for # equal to some value. Your mileage my vary. win := $(shell uname | grep CYGWIN) ifeq ($(win),) win := $(shell uname | grep MINGW) endif dar := $(shell uname | grep Darwin) ifneq ($(win),) include Makefile-win.mk else ifeq ($(dar),Darwin) include Makefile-macosx.mk else include Makefile-linux.mk endif