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')
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