summaryrefslogtreecommitdiffstats
path: root/utils/MTP/Makefile
blob: 9cbacd85d64977654a4cdaf89efd18ce89085f48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
CFLAGS = -Wall
LIBS = -lmtp
OUTPUT = sendfirm

all: $(OUTPUT)

$(OUTPUT): sendfirm.c
	gcc $(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)