COMPILE_DEBUG should not disable optimizations If you additionally want to disable optimizations, define this IGNORE_SPEED macro.
diff --git a/makefile_include.mk b/makefile_include.mk
index aad3896..cae5ac7 100644
--- a/makefile_include.mk
+++ b/makefile_include.mk
@@ -71,7 +71,7 @@ endif
ifdef COMPILE_DEBUG
#debug
CFLAGS += -g3
-else
+endif
ifdef COMPILE_SIZE
#for size
@@ -87,7 +87,6 @@ CFLAGS += -fomit-frame-pointer
endif
endif # COMPILE_SIZE
-endif # COMPILE_DEBUG
ifneq ($(findstring clang,$(CC)),)
CFLAGS += -Wno-typedef-redefinition -Wno-tautological-compare -Wno-builtin-requires-header