(libretro-db) Makefile: add a DEBUG build option

This commit is contained in:
aliaspider 2016-01-23 04:10:19 +01:00
parent 3f66270fcb
commit 964f0f7926

View File

@ -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 \