summaryrefslogtreecommitdiffstats
path: root/users/konstantin/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'users/konstantin/rules.mk')
-rw-r--r--users/konstantin/rules.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/users/konstantin/rules.mk b/users/konstantin/rules.mk
index 4af256e1e..8913e5755 100644
--- a/users/konstantin/rules.mk
+++ b/users/konstantin/rules.mk
@@ -1,4 +1,7 @@
SRC += konstantin.c
+ifneq (,$(filter yes,$(RGBLIGHT_ENABLE) $(RGB_MATRIX_ENABLE))) # if either is yes
+ SRC += rgb.c
+endif
ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
SRC += tap_dance.c
endif