forked from PAWPAW-Mirror/lib_xua
Add Windows support to xmosdfu
Needs WinUSB drivers installed on interface 0.
This commit is contained in:
28
lib_xua/host/xmosdfu/Makefile.Win32
Normal file
28
lib_xua/host/xmosdfu/Makefile.Win32
Normal 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
|
||||
Reference in New Issue
Block a user