ifeq (Windows_NT,$(OS))
WIN=1
endif
ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
ifeq (1,$(WIN))
include Makefile.mgw
else
include Makefile.linux