]> git.sesse.net Git - bmusb/commitdiff
Support (partially) overriding CXXFLAGS and LDFLAGS on the command line.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 29 Aug 2021 19:32:51 +0000 (21:32 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 29 Aug 2021 19:32:51 +0000 (21:32 +0200)
Patch by Anton Schubert.

Makefile

index 5160e83db6e5c6bb332f5a392959869307752c09..f7a54c84da5beac9d601e17daf3443aa32d76437 100644 (file)
--- 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