aboutsummaryrefslogtreecommitdiffstats
path: root/common_features.mk
diff options
context:
space:
mode:
authorGravatar Joel Challis <git@zvecr.com>2019-12-03 19:48:55 +0000
committerGravatar GitHub <noreply@github.com>2019-12-03 19:48:55 +0000
commitd598f01cb7b9d4d9e8fc7bbc951b70be7726a468 (patch)
tree84ca6e81fba9d76777636cd8cfd1c17e7ed13dd8 /common_features.mk
parent1718dfa658dbe8ad144100b561794c5596ac5f08 (diff)
downloadqmk_firmware-d598f01cb7b9d4d9e8fc7bbc951b70be7726a468.tar.gz
Relocate magic keycode processing (#7512)
* Move magic keycode processing to own file * Save some bytes * Update comments * Update define to one thats not already used... * Fix audio
Diffstat (limited to 'common_features.mk')
-rw-r--r--common_features.mk12
1 files changed, 9 insertions, 3 deletions
diff --git a/common_features.mk b/common_features.mk
index e50207b0b..1c814286c 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -407,12 +407,18 @@ ifeq ($(strip $(SPACE_CADET_ENABLE)), yes)
OPT_DEFS += -DSPACE_CADET_ENABLE
endif
-ifeq ($(strip $(DIP_SWITCH_ENABLE)), yes)
- SRC += $(QUANTUM_DIR)/dip_switch.c
- OPT_DEFS += -DDIP_SWITCH_ENABLE
+MAGIC_ENABLE ?= yes
+ifeq ($(strip $(MAGIC_ENABLE)), yes)
+ SRC += $(QUANTUM_DIR)/process_keycode/process_magic.c
+ OPT_DEFS += -DMAGIC_KEYCODE_ENABLE
endif
ifeq ($(strip $(DYNAMIC_MACRO_ENABLE)), yes)
SRC += $(QUANTUM_DIR)/process_keycode/process_dynamic_macro.c
OPT_DEFS += -DDYNAMIC_MACRO_ENABLE
endif
+
+ifeq ($(strip $(DIP_SWITCH_ENABLE)), yes)
+ SRC += $(QUANTUM_DIR)/dip_switch.c
+ OPT_DEFS += -DDIP_SWITCH_ENABLE
+endif