From a8bebb4a55f0dfc32b026cca0aad7dcd2d0237ac Mon Sep 17 00:00:00 2001 From: neheb Date: Sun, 5 Jun 2016 13:22:38 -0700 Subject: [PATCH 1/2] Add cygwin support Doesn't actually build but "make win64" or "make win32" still works. Actually, why is the operating system even checked in the makefile? --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 8da8b1f66..ce6c29e3d 100644 --- a/src/Makefile +++ b/src/Makefile @@ -14,7 +14,7 @@ PROG_NAME := hashcat UNAME := $(shell uname -s) -ifeq (,$(filter $(UNAME),Linux Darwin)) +ifeq (,$(filter $(UNAME),Linux Darwin CYGWIN_NT-10.0)) $(error "! Your Operating System ($(UNAME)) is not supported by $(PROG_NAME) Makefile") endif From 37ff7fbc111e3fb8f7dbf9dac4f82aef3960aad1 Mon Sep 17 00:00:00 2001 From: Mangix Date: Fri, 10 Jun 2016 14:11:22 -0700 Subject: [PATCH 2/2] Small fix for < 10 Windows --- src/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index ce6c29e3d..2ca5fd05d 100644 --- a/src/Makefile +++ b/src/Makefile @@ -13,8 +13,9 @@ PROG_NAME := hashcat ## UNAME := $(shell uname -s) +UNAME := $(patsubst CYGWIN_NT-%,CYGWIN_NT-,$(UNAME)) -ifeq (,$(filter $(UNAME),Linux Darwin CYGWIN_NT-10.0)) +ifeq (,$(filter $(UNAME),Linux Darwin CYGWIN_NT-)) $(error "! Your Operating System ($(UNAME)) is not supported by $(PROG_NAME) Makefile") endif