summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rw-r--r--gramscii.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 71887b1..eec14c1 100644
--- a/Makefile
+++ b/Makefile
@@ -23,6 +23,9 @@ gramscii: ${OBJ}
${OBJ}: ${INC}
+debug: clean
+ ${MAKE} ${MAKEFILE} CFLAGS="-O0 -Wall -pedantic -g -DDEBUG=1"
+
clean:
@echo cleaning
@rm -f gramscii ${OBJ}
diff --git a/gramscii.h b/gramscii.h
index 2c09484..2ec7088 100644
--- a/gramscii.h
+++ b/gramscii.h
@@ -82,8 +82,6 @@ typedef struct{
#define progr_x(d) ((d) == DIR_L ? -1 : (d) == DIR_R ? 1 : 0)
#define progr_y(d) ((d) == DIR_U ? -1 : (d) == DIR_D ? 1 : 0)
-#define DEBUG 1
-
/** global variables **/
lineset_t screen; /* what is visualised */