Fixed external LED detection
[SCSI2SD.git] / software / scsi2sd-config / Makefile.mingw
1 all:  build/windows/32bit/scsi2sd-config.exe build/windows/64bit/scsi2sd-config.exe
2
3 CFLAGS += -Wall
4 LDFLAGS=-mconsole -mwindows -lsetupapi -lws2_32
5
6 HID_C = ../bootloaderhost/hidapi/windows/hid.c
7
8
9 build/windows/32bit/scsi2sd-config.exe: main.c $(HID_C)
10         mkdir -p $(dir $@)
11         i686-w64-mingw32-gcc $(CFLAGS) -I ../bootloaderhost/hidapi/hidapi $^ $(LDFLAGS) -o $@
12
13 build/windows/64bit/scsi2sd-config.exe: main.c $(HID_C)
14         mkdir -p $(dir $@)
15         x86_64-w64-mingw32-gcc $(CFLAGS) -I ../bootloaderhost/hidapi/hidapi $^ $(LDFLAGS) -o $@
16
17 clean:
18         rm -r build/windows
19