-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
AR := ar
LN := ln
RANLIB := ranlib
PREFIX := /usr/local
LIB := libbmusb.a
SODEV := libbmusb.so
-SONAME := libbmusb.so.3
-SOLIB := libbmusb.so.3.0.0
+SONAME := libbmusb.so.6
+SOLIB := libbmusb.so.6.0.0
all: $(LIB) $(SOLIB) main