diff --git a/src/odoors/GNUmakefile b/src/odoors/GNUmakefile
index 16801dcfc09f60c26718018ccbda6f00f3bff7d2..b2ee6439339b61243026765ee0a0194ae5f2b699 100644
--- a/src/odoors/GNUmakefile
+++ b/src/odoors/GNUmakefile
@@ -56,7 +56,7 @@ EXEDIR	:=	exe-$(OS)/
 LD	:=	gcc
 
 ifdef DEBUG
- CFLAGS	+=	-g
+ CFLAGS	+=	-g -DOD_DEBUG
  BUILDTYPE	:=	debug
 else
  BUILDTYPE	:=	release