summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e39c6d4..a8a9d91 100644
--- a/Makefile
+++ b/Makefile
@@ -163,6 +163,12 @@ endif
CORE_DIR := ./src
LIBRETRO_DIR := ./libretro
+ifeq ($(DEBUG), 1)
+DEFINES += -O0 -g
+else
+DEFINES += -O2 -DNDEBUG=1
+endif
+
include Makefile.common
OBJS := $(SOURCES:.c=.o)