]> git.mdlowis.com Git - projs/tide.git/commitdiff
Added variables for optional features to the config.mk file
authorMichael D. Lowis <mike.lowis@gentex.com>
Thu, 15 Jun 2017 17:23:03 +0000 (13:23 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Thu, 15 Jun 2017 17:23:03 +0000 (13:23 -0400)
config.mk

index f2e2dcef6a80f5b330d4b2d000b068cd289f5a7b..844622148a16a7ccfb87f1d48ee50e56bb84b60b 100644 (file)
--- 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)