core: Add NO_PRINT and NO_DEBUG build option

Lines below in Makefile disable print and debug functions respectively.
    NO_PRINT = yes
    NO_DEBUG = yes
This commit is contained in:
tmk 2019-09-18 15:09:02 +09:00
parent bc821b79d0
commit 13e115b352

View file

@ -58,6 +58,14 @@ else
endif
endif
ifeq (yes,$(strip $(NO_DEBUG)))
OPT_DEFS += -DNO_DEBUG
endif
ifeq (yes,$(strip $(NO_PRINT)))
OPT_DEFS += -DNO_PRINT
endif
ifeq (yes,$(strip $(COMMAND_ENABLE)))
SRC += $(COMMON_DIR)/command.c
OPT_DEFS += -DCOMMAND_ENABLE