Commit 1beba97d authored by Guillaume Lecerf's avatar Guillaume Lecerf

Exit early on missing libusb

parent 0cdcd648
libusb_CFLAGS := $(shell $(PKG_CONFIG) --cflags libusb-1.0)
libusb_LIBS := $(shell $(PKG_CONFIG) --libs libusb-1.0)
ifeq ($(libusb_LIBS),)
ERROR := $(error "libusb-1.0 not found")
override CFLAGS += $(libusb_CFLAGS)
override LIBS += $(libusb_LIBS) $(EXTRA_LIBS)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment