mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -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=
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue