From 6334dc3fcbd67a757f6065a946a2343185c233fc Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 29 Aug 2021 21:32:51 +0200 Subject: [PATCH] Support (partially) overriding CXXFLAGS and LDFLAGS on the command line. Patch by Anton Schubert. --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.2