summaryrefslogtreecommitdiffstats
path: root/rbutil/sansapatcher
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2008-01-06 11:55:55 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2008-01-06 11:55:55 +0000
commit919caf0208a7a6ed4a5f7b920c692e758d9d3250 (patch)
tree390cdcc6908fe562719b5280cc0efe66ac249230 /rbutil/sansapatcher
parentdadd80a8a601ba56246b0e3ad37b55f2c97d1196 (diff)
downloadrockbox-919caf0208a7a6ed4a5f7b920c692e758d9d3250.tar.gz
rockbox-919caf0208a7a6ed4a5f7b920c692e758d9d3250.zip
allow building ipodpatcher / sansapatcher with MinGW.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16003 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/sansapatcher')
-rw-r--r--rbutil/sansapatcher/Makefile5
1 files changed, 5 insertions, 0 deletions
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