mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
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:
parent
203e4b38cd
commit
1af18d52af
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue