X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=Makefile;h=23b458c94921a5c6f05e293c164168d30d19de43;hb=e5d3c4dd92e9712497bf3d01076de22a5751c6f7;hp=b58db0f8efa578e6403d889e2b0f68fef7b798ca;hpb=0c0182f453e8bc26e630615ea6d2a2f05e868fde;p=bmusb diff --git a/Makefile b/Makefile index b58db0f..23b458c 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ -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