1
0
Fork 0
forked from len0rd/rockbox

Fix old libmtp detection on Ubuntu systems that don't support echo -e.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20039 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Nicolas Pennequin 2009-02-18 14:50:46 +00:00
parent 29b1156d86
commit 6a3779b543

View file

@ -1,8 +1,8 @@
CFLAGS = -Wall
LIBS = -lmtp
OUTPUT = sendfirm
EXTRA_CFLAGS = $(shell echo -e \
'\#include <libmtp.h>\nlibmtp version: LIBMTP_VERSION' | \
EXTRA_CFLAGS = $(shell printf \
'\#include <libmtp.h>\nlibmtp version: LIBMTP_VERSION\n' | \
gcc -E -P - -o - | grep -q '^libmtp version: 0\.2' && echo '-DOLDMTP')
all: $(OUTPUT)