diff --git a/Makefile b/Makefile index 4e15bb3..f043672 100644 --- a/Makefile +++ b/Makefile @@ -115,6 +115,12 @@ else boost_serialization boost_program_options endif +HID_FOUND := $(shell grep -qo HIDAPI_LIBRARY-NOTFOUND \ + ${MONERO_BUILD_ROOT}/CMakeCache.txt; echo $$?) +ifeq ($(HID_FOUND), 1) + LIBS += hidapi-libusb +endif + PKG_LIBS := $(shell pkg-config \ "libevent >= 2.1" \ json-c \