diff options
author | tmk <nobody@nowhere> | 2013-03-21 15:44:33 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2013-03-21 15:44:33 +0900 |
commit | 2b08a150a41e25e87362436b7307bb1be35529f3 (patch) | |
tree | e176fafe0e7723612f7fb34b88105ea892f35404 /common.mk | |
parent | 8580c8d291a432d5004c46321aa3c1b1626cdadd (diff) | |
parent | b2a19328ad35f51dcc9cef7c4d2801acd143582a (diff) |
Merge branch 'add_build_options'
Diffstat (limited to 'common.mk')
-rw-r--r-- | common.mk | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -2,10 +2,10 @@ COMMON_DIR = common SRC += $(COMMON_DIR)/host.c \ $(COMMON_DIR)/keyboard.c \ $(COMMON_DIR)/action.c \ + $(COMMON_DIR)/action_oneshot.c \ $(COMMON_DIR)/action_macro.c \ $(COMMON_DIR)/layer_switch.c \ $(COMMON_DIR)/keymap.c \ - $(COMMON_DIR)/command.c \ $(COMMON_DIR)/timer.c \ $(COMMON_DIR)/print.c \ $(COMMON_DIR)/debug.c \ @@ -31,6 +31,14 @@ endif ifdef CONSOLE_ENABLE OPT_DEFS += -DCONSOLE_ENABLE +else + OPT_DEFS += -DNO_PRINT + OPT_DEFS += -DNO_DEBUG +endif + +ifdef COMMAND_ENABLE + SRC += $(COMMON_DIR)/command.c + OPT_DEFS += -DCOMMAND_ENABLE endif ifdef NKRO_ENABLE |