From: Michael D. Lowis Date: Thu, 15 Jun 2017 17:23:03 +0000 (-0400) Subject: Added variables for optional features to the config.mk file X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=50db9010d1fbc2d60b1569d030016167fa73746c;p=projs%2Ftide.git Added variables for optional features to the config.mk file --- 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)