Support building beastpatcher with MinGW.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20960 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2009-05-16 10:51:20 +00:00
parent 203e4b38cd
commit 1af18d52af

View file

@ -5,14 +5,21 @@ OUTPUT=beastpatcher.exe
CROSS= CROSS=
CFLAGS+=-mno-cygwin CFLAGS+=-mno-cygwin
else else
ifeq ($(findstring MINGW,$(shell uname)),MINGW)
OUTPUT=beastpatcher.exe
CROSS=
else
OUTPUT=beastpatcher OUTPUT=beastpatcher
CROSS=i586-mingw32msvc- CROSS=i586-mingw32msvc-
endif endif
endif
ifneq ($(findstring MINGW,$(shell uname)),MINGW)
LIBS = /usr/lib/libmtp.a /usr/lib/libusb.a LIBS = /usr/lib/libmtp.a /usr/lib/libusb.a
CFLAGS += $(shell printf \ CFLAGS += $(shell printf \
'\#include <libmtp.h>\nlibmtp version: LIBMTP_VERSION\n' | \ '\#include <libmtp.h>\nlibmtp version: LIBMTP_VERSION\n' | \
gcc -E -P - -o - | grep -q '^libmtp version: 0\.2' && echo '-DOLDMTP') gcc -E -P - -o - | grep -q '^libmtp version: 0\.2' && echo '-DOLDMTP')
endif
WINLIBS = ../MTP_DLL.dll WINLIBS = ../MTP_DLL.dll
NATIVECC = gcc NATIVECC = gcc