From 964f0f7926123c31292db140e5f1540db9d57174 Mon Sep 17 00:00:00 2001 From: aliaspider Date: Sat, 23 Jan 2016 04:10:19 +0100 Subject: [PATCH] (libretro-db) Makefile: add a DEBUG build option --- libretro-db/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libretro-db/Makefile b/libretro-db/Makefile index e0c5b6eda0..75e9de48e9 100644 --- a/libretro-db/Makefile +++ b/libretro-db/Makefile @@ -1,9 +1,15 @@ -CFLAGS = -g -O2 -Wall +DEBUG = 0 LIBRETRO_COMMON_DIR := ../libretro-common INCFLAGS = -I. -I$(LIBRETRO_COMMON_DIR)/include TARGETS = rmsgpack_test libretrodb_tool plain_converter lua_converter c_converter +ifeq ($(DEBUG), 1) +CFLAGS = -g -O0 -Wall +else +CFLAGS = -g -O2 -Wall -DNDEBUG +endif + LUA_CONVERTER_C = \ rmsgpack.c \ rmsgpack_dom.c \