mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-12-11 20:58:15 +06:00
ced8142847
Co-authored-by: Drashna Jaelre <drashna@live.com>
9 lines
307 B
Makefile
9 lines
307 B
Makefile
# if ENCODER_ENABLE is set, add defines but avoid adding encoder.c as it's replaced by custom code in rev2.c
|
|
ifeq ($(strip $(ENCODER_ENABLE)), yes)
|
|
ENCODER_ENABLE := no
|
|
OPT_DEFS += -DENCODER_ENABLE
|
|
ifeq ($(strip $(ENCODER_MAP_ENABLE)), yes)
|
|
OPT_DEFS += -DENCODER_MAP_ENABLE
|
|
endif
|
|
endif
|