From 50db9010d1fbc2d60b1569d030016167fa73746c Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Thu, 15 Jun 2017 13:23:03 -0400 Subject: [PATCH] Added variables for optional features to the config.mk file --- config.mk | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/config.mk b/config.mk index f2e2dce..8446221 100644 --- a/config.mk +++ b/config.mk @@ -24,8 +24,17 @@ LDFLAGS = $(LIBS) -lX11 -lXft -lfontconfig -lutil AR = ar ARFLAGS = rcs -# Treat all warnings as errors (poor man's lint?) -#CFLAGS += -Wall -Wextra -Werror +# Set the variables below or set them on the command line to enable the +# corresponding feature +WERROR = 0 +DEBUG = 0 +GPROF = 0 +GCOV = 0 + +# Treat all warnings as errors (poor man's lint?) +ifeq ($(WERROR), 1) + CFLAGS += -Wall -Wextra -Werror +endif # GCC Debugging ifeq ($(DEBUG), 1) -- 2.49.0