Sparse's build can be tuned by changing variables like CFLAGS, PREFIX, ... either via a local config file (local.mk) or directly via the command line. Given how makefile variables work, they can also potentialy be changed via the environment. However this was OK for LDFLAGS (which is undefined by default) but not CFLAGS which was unconditionaly set to the default '-O2 -g'. Since Debian builds needs it at least for CFLAGS, these patches allows to set CFLAGS, PREFIX, ... via the environment by initializing them with '?=' instead of '='. Changes since v2: * CHECKER is not configurable anymore * MAN1DIR is unneeded, MANDIR is enough * make '-Wall -Wwrite-strings' mandatory Changes since v1: * use '?=' also for PKG_CONFIG, CHECKER, PREFIX, DESTDIR, BINDI,? MANDIR & MAN1DIR. Luc Van Oostenryck (3): build: let CHECKER & CHECKER_FLAGS be internals build: always use '-Wall -Wwrite-strings' build: get rid of MAN1DIR Uwe Kleine-König (1): build: honor CFLAGS & friends from environment Makefile | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) -- 2.20.0