Fix r26298 yellow: Somehow missed those warnings. Need playback.h.
[maemo-rb.git] / utils / MTP / Makefile
blob9566a19f56331ed63cc2e6a5b11711ccd53eec2e
1 CFLAGS = -Wall
2 LIBS = -lmtp
3 OUTPUT = sendfirm
4 EXTRA_CFLAGS = $(shell printf \
5 '\#include <libmtp.h>\nlibmtp version: LIBMTP_VERSION\n' | \
6 gcc -E -P - -o - | grep -q '^libmtp version: 0\.2' && echo '-DOLDMTP')
8 all: $(OUTPUT)
10 $(OUTPUT): sendfirm.c
11 gcc $(EXTRA_CFLAGS) $(CFLAGS) $(LIBS) -o $(OUTPUT) sendfirm.c
13 $(OUTPUT).exe: sendfirm_win.c
14 mingw32-gcc $(CFLAGS) -o $(OUTPUT).exe sendfirm_win.c MTP_DLL.dll
16 clean:
17 rm -f $(OUTPUT)