Merge Powerbook pcb updates
[SCSI2SD.git] / software / bootloaderhost / Makefile.mingw
CommitLineData
ed1dff17
MM
1all: build/windows/32bit/bootloaderhost.exe build/windows/64bit/bootloaderhost.exe
2
3CYAPI = \
4 cybootloaderutils/cybtldr_api2.c \
5 cybootloaderutils/cybtldr_api.c \
6 cybootloaderutils/cybtldr_command.c \
7 cybootloaderutils/cybtldr_parse.c \
8
9CFLAGS += -Wall -Wno-pointer-sign
10LDFLAGS=-mconsole -mwindows -lsetupapi
11
12HID_C = hidapi/windows/hid.c
13
14
15build/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
19build/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
23clean:
24 rm -r build/windows
25