diff options
Diffstat (limited to 'users/xulkal/rules.mk')
-rw-r--r-- | users/xulkal/rules.mk | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/users/xulkal/rules.mk b/users/xulkal/rules.mk index ab0231d7d..8f8365ea7 100644 --- a/users/xulkal/rules.mk +++ b/users/xulkal/rules.mk @@ -1,9 +1,6 @@ SRC += xulkal.c \ process_records.c \ - custom_tap_dance.c \ - custom_encoder.c \ - custom_oled.c \ - timer_utils.c + custom_tap_dance.c # Some usual defaults MOUSEKEY_ENABLE = no # Mouse keys (+4700) @@ -15,3 +12,21 @@ ifneq ($(strip $(DISABLE_LTO)), yes) OPT_DEFS += -DNO_ACTION_MACRO OPT_DEFS += -DNO_ACTION_FUNCTION endif + +ifeq ($(strip $(ENCODER_ENABLE)), yes) + SRC += custom_encoder.c +endif + +ifneq ($(strip $(RGB_MATRIX_ENABLE)), no) + OPT_DEFS += -DRGB_ENABLE + SRC += custom_rgb.c +endif + +ifeq ($(strip $(RGBLIGHT_ENABLE)), yes) + OPT_DEFS += -DRGB_ENABLE + SRC += custom_rgb.c +endif + +ifeq ($(strip $(OLED_DRIVER_ENABLE)), yes) + SRC += custom_oled.c +endif |