makefile: indentation fix (replace tabs with spaces) + comments about cygwin builds
[hashcat.git] / src / Makefile
index db30bbb..76f3a6f 100644 (file)
@@ -14,7 +14,10 @@ PROG_NAME                := hashcat
 
 UNAME                    := $(shell uname -s)
 
-ifeq (,$(filter $(UNAME),Linux Darwin))
+# we need to strip the windows version number to be able to build hashcat on cygwin hosts
+UNAME                    := $(patsubst CYGWIN_NT-%,CYGWIN_NT-,$(UNAME))
+
+ifeq (,$(filter $(UNAME),Linux Darwin CYGWIN_NT-))
 $(error "! Your Operating System ($(UNAME)) is not supported by $(PROG_NAME) Makefile")
 endif