mirror of
https://github.com/fhgwright/SCSI2SD.git
synced 2025-02-11 18:30:27 +00:00
Added Windows support for the bootloaderhost utility
Compile on Linux using the mingw cross compiler.
This commit is contained in:
parent
32a39b08be
commit
ed1dff172e
25
software/bootloaderhost/Makefile.mingw
Normal file
25
software/bootloaderhost/Makefile.mingw
Normal file
@ -0,0 +1,25 @@
|
||||
all: build/windows/32bit/bootloaderhost.exe build/windows/64bit/bootloaderhost.exe
|
||||
|
||||
CYAPI = \
|
||||
cybootloaderutils/cybtldr_api2.c \
|
||||
cybootloaderutils/cybtldr_api.c \
|
||||
cybootloaderutils/cybtldr_command.c \
|
||||
cybootloaderutils/cybtldr_parse.c \
|
||||
|
||||
CFLAGS += -Wall -Wno-pointer-sign
|
||||
LDFLAGS=-mconsole -mwindows -lsetupapi
|
||||
|
||||
HID_C = hidapi/windows/hid.c
|
||||
|
||||
|
||||
build/windows/32bit/bootloaderhost.exe: main.c $(HID_C) $(CYAPI)
|
||||
mkdir -p $(dir $@)
|
||||
i686-w64-mingw32-gcc $(CFLAGS) -I cybootloaderutils -I hidapi/hidapi $^ $(LDFLAGS) -o $@
|
||||
|
||||
build/windows/64bit/bootloaderhost.exe: main.c $(HID_C) $(CYAPI)
|
||||
mkdir -p $(dir $@)
|
||||
x86_64-w64-mingw32-gcc $(CFLAGS) -I cybootloaderutils -I hidapi/hidapi $^ $(LDFLAGS) -o $@
|
||||
|
||||
clean:
|
||||
rm -r build/windows
|
||||
|
Loading…
x
Reference in New Issue
Block a user