summaryrefslogtreecommitdiffstats
path: root/utils/MTP
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2009-05-16 10:51:20 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2009-05-16 10:51:20 +0000
commit1af18d52af70a638cda8f12702b6e48fdec2e1da (patch)
tree60c8bdfe20af44f3af6204b3ac9d4227f2bc2804 /utils/MTP
parent203e4b38cdb00496d6cb19f2a3ef1bbdb8dead0b (diff)
downloadrockbox-1af18d52af70a638cda8f12702b6e48fdec2e1da.tar.gz
rockbox-1af18d52af70a638cda8f12702b6e48fdec2e1da.zip
Support building beastpatcher with MinGW.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20960 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/MTP')
-rw-r--r--utils/MTP/beastpatcher/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/MTP/beastpatcher/Makefile b/utils/MTP/beastpatcher/Makefile
index c0c82df53b..a40a2338f0 100644
--- a/utils/MTP/beastpatcher/Makefile
+++ b/utils/MTP/beastpatcher/Makefile
@@ -5,14 +5,21 @@ OUTPUT=beastpatcher.exe
CROSS=
CFLAGS+=-mno-cygwin
else
+ifeq ($(findstring MINGW,$(shell uname)),MINGW)
+OUTPUT=beastpatcher.exe
+CROSS=
+else
OUTPUT=beastpatcher
CROSS=i586-mingw32msvc-
endif
+endif
+ifneq ($(findstring MINGW,$(shell uname)),MINGW)
LIBS = /usr/lib/libmtp.a /usr/lib/libusb.a
CFLAGS += $(shell printf \
'\#include <libmtp.h>\nlibmtp version: LIBMTP_VERSION\n' | \
gcc -E -P - -o - | grep -q '^libmtp version: 0\.2' && echo '-DOLDMTP')
+endif
WINLIBS = ../MTP_DLL.dll
NATIVECC = gcc