From 919caf0208a7a6ed4a5f7b920c692e758d9d3250 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sun, 6 Jan 2008 11:55:55 +0000 Subject: [PATCH] allow building ipodpatcher / sansapatcher with MinGW. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16003 a1c6a512-1295-4272-9138-f99709370657 --- rbutil/ipodpatcher/Makefile | 5 +++++ rbutil/sansapatcher/Makefile | 5 +++++ 2 files changed, 10 insertions(+) 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