Add some changes to improve compiling on MSYS2

This commit is contained in:
jsteube
2016-10-21 09:07:39 +02:00
parent 6b96146e0f
commit c6c31a86d8
3 changed files with 13 additions and 6 deletions
+5 -3
View File
@@ -12,10 +12,12 @@ PROG_NAME := hashcat
UNAME := $(shell uname -s)
# we need to strip the windows version number to be able to build hashcat on cygwin hosts
UNAME := $(patsubst CYGWIN_NT-%,CYGWIN_NT-,$(UNAME))
UNAME := $(patsubst MINGW64_NT-%,MINGW64_NT-,$(UNAME))
UNAME := $(patsubst CYGWIN_NT-%,CYGWIN,$(UNAME))
UNAME := $(patsubst MSYS_NT-%,MSYS2,$(UNAME))
UNAME := $(patsubst MINGW32_NT-%,MSYS2,$(UNAME))
UNAME := $(patsubst MINGW64_NT-%,MSYS2,$(UNAME))
ifeq (,$(filter $(UNAME),Linux Darwin CYGWIN_NT- MINGW64_NT- FreeBSD))
ifeq (,$(filter $(UNAME),Linux Darwin CYGWIN MSYS2 FreeBSD))
$(error "! Your Operating System ($(UNAME)) is not supported by $(PROG_NAME) Makefile")
endif