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:
parent
bc821b79d0
commit
13e115b352
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue