diff options
Diffstat (limited to 'utils/MTP/beastpatcher/Makefile')
-rw-r--r-- | utils/MTP/beastpatcher/Makefile | 7 |
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 | |||
5 | CROSS= | 5 | CROSS= |
6 | CFLAGS+=-mno-cygwin | 6 | CFLAGS+=-mno-cygwin |
7 | else | 7 | else |
8 | ifeq ($(findstring MINGW,$(shell uname)),MINGW) | ||
9 | OUTPUT=beastpatcher.exe | ||
10 | CROSS= | ||
11 | else | ||
8 | OUTPUT=beastpatcher | 12 | OUTPUT=beastpatcher |
9 | CROSS=i586-mingw32msvc- | 13 | CROSS=i586-mingw32msvc- |
10 | endif | 14 | endif |
15 | endif | ||
11 | 16 | ||
17 | ifneq ($(findstring MINGW,$(shell uname)),MINGW) | ||
12 | LIBS = /usr/lib/libmtp.a /usr/lib/libusb.a | 18 | LIBS = /usr/lib/libmtp.a /usr/lib/libusb.a |
13 | CFLAGS += $(shell printf \ | 19 | CFLAGS += $(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') |
22 | endif | ||
16 | WINLIBS = ../MTP_DLL.dll | 23 | WINLIBS = ../MTP_DLL.dll |
17 | 24 | ||
18 | NATIVECC = gcc | 25 | NATIVECC = gcc |