rockbox/utils/MTP/Makefile
Nicolas Pennequin 6a3779b543 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
2009-02-18 14:50:46 +00:00

17 lines
437 B
Makefile

CFLAGS = -Wall
LIBS = -lmtp
OUTPUT = sendfirm
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)
$(OUTPUT): sendfirm.c
gcc $(EXTRA_CFLAGS) $(CFLAGS) $(LIBS) -o $(OUTPUT) sendfirm.c
$(OUTPUT).exe: sendfirm_win.c
mingw32-gcc $(CFLAGS) -o $(OUTPUT).exe sendfirm_win.c MTP_DLL.dll
clean:
rm -f $(OUTPUT)