-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile.win
More file actions
46 lines (31 loc) · 766 Bytes
/
Makefile.win
File metadata and controls
46 lines (31 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
VERSION_MAIN = 1
VERSION_SUB = 6
CC = i586-mingw32msvc-gcc
EXECS = mphidflash.exe
OBJS = main.o hex.o usb-windows.o
CFLAGS = -DWIN -DVERSION_MAIN=$(VERSION_MAIN) -DVERSION_SUB=$(VERSION_SUB)
LDFLAGS = -lhid -lsetupapi
all: $(EXECS)
*.o: mphidflash.h
.c.o:
$(CC) $(CFLAGS) -c $*.c
# todo: add 64 bit target (low priority as 32 bit works on all platforms)
mphidflash32: CFLAGS += -m32
mphidflash32: LDFLAGS += -m32
mphidflash32: mphidflash.exe
mphidflash.exe: $(OBJS)
$(CC) $(OBJS) $(LDFLAGS) -o binaries/mphidflash-$(VERSION_MAIN).$(VERSION_SUB)-win-32.exe
clean:
rm -f $(EXECS) *.o core
srcdist:
make srcdist
bindist:
make bindist
tarball:
make tarball
src-tarball:
make src-tarball
zipfile:
make zipfile
src-zipfile:
make src-zipfile