Fix Windows detection in makefile for MinGW

This commit is contained in:
Daniel Gibson 2016-02-20 20:34:31 +01:00
parent b0f4627044
commit ac084046a8
1 changed files with 5 additions and 0 deletions

View File

@ -21,6 +21,11 @@ else
OSTYPE := $(shell uname -s)
endif
# Special case for MinGW
ifneq (,$(findstring MINGW,$(OSTYPE)))
OSTYPE := Windows
endif
# Detect the architecture
ifeq ($(OSTYPE), Windows)
# At this time only i386 is supported on Windows