From: Steinar H. Gunderson Date: Sun, 29 Aug 2021 19:32:51 +0000 (+0200) Subject: Support (partially) overriding CXXFLAGS and LDFLAGS on the command line. X-Git-Tag: 0.7.7~1 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=6334dc3fcbd67a757f6065a946a2343185c233fc;hp=c65ae2fbbdb350975f1f097f6f150bc7e8af6e4e;p=bmusb Support (partially) overriding CXXFLAGS and LDFLAGS on the command line. Patch by Anton Schubert. --- diff --git a/Makefile b/Makefile index 5160e83..f7a54c8 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ 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 +CXXFLAGS ?= -O2 -g +CXXFLAGS := -std=gnu++14 -Wall -I. $(shell $(PKG_CONFIG) libusb-1.0 --cflags) -pthread $(CXXFLAGS) +LDFLAGS := $(shell $(PKG_CONFIG) libusb-1.0 --libs) -pthread $(LDFLAGS) AR := ar LN := ln RANLIB := ranlib