X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=23b458c94921a5c6f05e293c164168d30d19de43;hb=e5d3c4dd92e9712497bf3d01076de22a5751c6f7;hp=e1c33ecd0e87fb438f688a7755e0acb72fcfbc6f;hpb=c7466ef67f76efdd9e8a151e8d0f38281199c2a9;p=bmusb diff --git a/Makefile b/Makefile index e1c33ec..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 @@ -7,8 +8,8 @@ INSTALL := install PREFIX := /usr/local LIB := libbmusb.a SODEV := libbmusb.so -SONAME := libbmusb.so.2 -SOLIB := libbmusb.so.2.0.0 +SONAME := libbmusb.so.6 +SOLIB := libbmusb.so.6.0.0 all: $(LIB) $(SOLIB) main