summaryrefslogtreecommitdiffstats
path: root/users/xulkal/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'users/xulkal/rules.mk')
-rw-r--r--users/xulkal/rules.mk20
1 files changed, 18 insertions, 2 deletions
diff --git a/users/xulkal/rules.mk b/users/xulkal/rules.mk
index ab0231d7dc..c3834ff5f0 100644
--- a/users/xulkal/rules.mk
+++ b/users/xulkal/rules.mk
@@ -1,8 +1,6 @@
SRC += xulkal.c \
process_records.c \
custom_tap_dance.c \
- custom_encoder.c \
- custom_oled.c \
timer_utils.c
# Some usual defaults
@@ -15,3 +13,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