0389fd0982
Change-Id: I6de6771bd8888e40fb9dafa3c84653c8c680bbef
17 lines
437 B
Makefile
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) -o $(OUTPUT) sendfirm.c $(LIBS)
|
|
|
|
$(OUTPUT).exe: sendfirm_win.c
|
|
mingw32-gcc $(CFLAGS) -o $(OUTPUT).exe sendfirm_win.c MTP_DLL.dll
|
|
|
|
clean:
|
|
rm -f $(OUTPUT)
|