diff --git a/rbutil/ipodpatcher/Makefile b/rbutil/ipodpatcher/Makefile index 79d1b2f62a..186c1da5c9 100644 --- a/rbutil/ipodpatcher/Makefile +++ b/rbutil/ipodpatcher/Makefile @@ -14,10 +14,15 @@ ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN) OUTPUT=ipodpatcher.exe CROSS= CFLAGS+=-mno-cygwin +else +ifeq ($(findstring MINGW,$(shell uname)),MINGW) +OUTPUT=ipodpatcher.exe +CROSS= else OUTPUT=ipodpatcher CROSS=i586-mingw32msvc- endif +endif NATIVECC = gcc CC = $(CROSS)gcc diff --git a/rbutil/sansapatcher/Makefile b/rbutil/sansapatcher/Makefile index 3786a41030..c425bbc892 100644 --- a/rbutil/sansapatcher/Makefile +++ b/rbutil/sansapatcher/Makefile @@ -5,9 +5,14 @@ OUTPUT=sansapatcher.exe CROSS= CFLAGS+=-mno-cygwin else +ifeq ($(findstring MINGW,$(shell uname)),MINGW) +OUTPUT=sansapatcher.exe +CROSS +else OUTPUT=sansapatcher CROSS=i586-mingw32msvc- endif +endif NATIVECC = gcc CC = $(CROSS)gcc