From: Kevin Murray Date: Mon, 19 Oct 2015 11:25:14 +1100 Subject: Include CPPFLAGS in CFLAGS --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ PROGRAM_NAME = scythe VERSION ='"$(shell dpkg-parsechangelog | grep '^Version:' | cut -f 2 -d ' ')"' -CC = gcc +CC ?= gcc DEBUG ?= 0 ifeq ($(DEBUG), 1) CFLAGS += -g -O0 @@ -9,7 +9,7 @@ else endif ARCHIVE = $(PROGRAM_NAME)_$(VERSION) -override CFLAGS += -Wall -pedantic -DVERSION=$(VERSION) -std=gnu99 -fPIC +override CFLAGS += $(CPPFLAGS) -Wall -pedantic -DVERSION=$(VERSION) -std=gnu99 -fPIC override LDFLAGS += -lz -lm LDTESTFLAGS = -lcheck SDIR = src