From 38c0ed7140fcde2b37dbfe1caf19a8f115ca1579 Mon Sep 17 00:00:00 2001 From: Amir Plivatsky Date: Mon, 14 Sep 2015 17:57:02 +0300 Subject: [PATCH] Makefile: Add a commented out CFLAGS for developing - Use -DDEBUG - Use -O0 instead of -Os, since Os includes -O2, a thing that makes using a debugger harder due to a changed order of computation and an inability to inspect variables that got optimized. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 47dd1bf..8e8470b 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,10 @@ # license that can be found in the LICENSE file. CC=gcc -# Add -DDEBUG to CFLAGS when developing/testing + CFLAGS=-g -Wall -Os +# Comment out when developing/testing +#CFLAGS=-DDEBUG -g -Wall -O0 TARG=re OFILES=\