Fixed external LED detection
[SCSI2SD-V6.git] / software / bootloaderhost / Makefile.mingw
1 all:  build/windows/32bit/bootloaderhost.exe build/windows/64bit/bootloaderhost.exe
2
3 CYAPI = \
4         cybootloaderutils/cybtldr_api2.c \
5         cybootloaderutils/cybtldr_api.c \
6         cybootloaderutils/cybtldr_command.c \
7         cybootloaderutils/cybtldr_parse.c \
8
9 CFLAGS += -Wall -Wno-pointer-sign
10 LDFLAGS=-mconsole -mwindows -lsetupapi
11
12 HID_C = hidapi/windows/hid.c
13
14
15 build/windows/32bit/bootloaderhost.exe: main.c $(HID_C) $(CYAPI)
16         mkdir -p $(dir $@)
17         i686-w64-mingw32-gcc $(CFLAGS) -I cybootloaderutils -I hidapi/hidapi $^ $(LDFLAGS) -o $@
18
19 build/windows/64bit/bootloaderhost.exe: main.c $(HID_C) $(CYAPI)
20         mkdir -p $(dir $@)
21         x86_64-w64-mingw32-gcc $(CFLAGS) -I cybootloaderutils -I hidapi/hidapi $^ $(LDFLAGS) -o $@
22
23 clean:
24         rm -r build/windows
25