wuxx / icesugar

iCESugar FPGA Board (base on iCE40UP5k)
350 stars 96 forks source link

icesprog: update Makefile, on Windows HIDAPI = hidapi #18

Closed umarcor closed 3 years ago

umarcor commented 3 years ago

On Windows (MSYS2), hidapi is used instead of hidapi-hidraw. This PR avoids the need to specify it when calling make. So, make works instead of make HIDAPI=hidapi.

At the same time, LIBUSB_CFLAGS, LIBUSB_LIBS, HIDAPI_CFLAGS and HIDAPI_LIBS seems unnecessary, because those are used in a single place.

Trailing whitespaces are removed too.