From: tmk Date: Wed, 18 Sep 2019 06:09:02 +0000 (+0900) Subject: core: Add NO_PRINT and NO_DEBUG build option X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=13e115b35244d12e944475d7e5d002fd8eb726d4;p=max%2Ftmk_keyboard.git 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 --- diff --git a/tmk_core/common.mk b/tmk_core/common.mk index a38ff081..090bbe6e 100644 --- a/tmk_core/common.mk +++ b/tmk_core/common.mk @@ -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