-CXXFLAGS := -std=gnu++14 -O2 -Wall -I. -g $(shell pkg-config libusb-1.0 --cflags) -pthread
-LDFLAGS := $(shell pkg-config libusb-1.0 --libs) -pthread
+PKG_CONFIG ?= pkg-config
+CXXFLAGS := -std=gnu++14 -O2 -Wall -I. -g $(shell $(PKG_CONFIG) libusb-1.0 --cflags) -pthread
+LDFLAGS := $(shell $(PKG_CONFIG) libusb-1.0 --libs) -pthread