summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortwinaphex2018-01-17 00:21:02 +0100
committertwinaphex2018-01-17 00:21:02 +0100
commit9491b1f1a453f1c3b52b170e28cce6203f7231b5 (patch)
treecafacbc4cbe3c7dfdd52a2047045ddb926d6a3fa /Makefile
parent6426ce5007b57ec33c03522db6f67edb2ea5cac3 (diff)
downloadsnes9x2002-9491b1f1a453f1c3b52b170e28cce6203f7231b5.tar.gz
snes9x2002-9491b1f1a453f1c3b52b170e28cce6203f7231b5.tar.bz2
snes9x2002-9491b1f1a453f1c3b52b170e28cce6203f7231b5.zip
Update
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)