Add Windows support to xmosdfu

Needs WinUSB drivers installed on interface 0.
This commit is contained in:
Oscar Bailey
2018-12-12 15:37:31 +00:00
parent 21c18c0599
commit 4ff0713e59
5 changed files with 2079 additions and 2 deletions

View File

@@ -0,0 +1,28 @@
# Build tested with Visual Studio 2017 command prompt
#
# Run: nmake /f Makefile.Win32
COMMON_FLAGS = \
/D BECLEAR_HOST=1 \
/I libusb\Win32 \
/nologo \
/W4 \
/WX- \
/O2 \
/EHa \
/D _CRT_SECURE_NO_WARNINGS \
xmosdfu.cpp \
all: xmosdfu
xmosdfu:
if not exist bin mkdir bin
CL.exe \
$(COMMON_FLAGS) \
/Fe"bin\xmosdfu.exe" \
/link "libusb\Win32\libusb-1.0.lib""
copy libusb-1.0.dll bin
del *.obj
clean:
rmdir /s /q bin