summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-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
5CROSS= 5CROSS=
6CFLAGS+=-mno-cygwin 6CFLAGS+=-mno-cygwin
7else 7else
8ifeq ($(findstring MINGW,$(shell uname)),MINGW)
9OUTPUT=beastpatcher.exe
10CROSS=
11else
8OUTPUT=beastpatcher 12OUTPUT=beastpatcher
9CROSS=i586-mingw32msvc- 13CROSS=i586-mingw32msvc-
10endif 14endif
15endif
11 16
17ifneq ($(findstring MINGW,$(shell uname)),MINGW)
12LIBS = /usr/lib/libmtp.a /usr/lib/libusb.a 18LIBS = /usr/lib/libmtp.a /usr/lib/libusb.a
13CFLAGS += $(shell printf \ 19CFLAGS += $(shell printf \
14 '\#include <libmtp.h>\nlibmtp version: LIBMTP_VERSION\n' | \ 20 '\#include <libmtp.h>\nlibmtp version: LIBMTP_VERSION\n' | \
15 gcc -E -P - -o - | grep -q '^libmtp version: 0\.2' && echo '-DOLDMTP') 21 gcc -E -P - -o - | grep -q '^libmtp version: 0\.2' && echo '-DOLDMTP')
22endif
16WINLIBS = ../MTP_DLL.dll 23WINLIBS = ../MTP_DLL.dll
17 24
18NATIVECC = gcc 25NATIVECC = gcc