aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/ergodox_ez/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/ergodox_ez/rules.mk')
-rw-r--r--keyboards/ergodox_ez/rules.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/keyboards/ergodox_ez/rules.mk b/keyboards/ergodox_ez/rules.mk
index ef2aefbb9..446ba3e21 100644
--- a/keyboards/ergodox_ez/rules.mk
+++ b/keyboards/ergodox_ez/rules.mk
@@ -15,8 +15,7 @@
#----------------------------------------------------------------------------
# # project specific files
-SRC = matrix.c \
- i2c_master.c
+SRC += matrix.c
# MCU name
MCU = atmega32u4
@@ -85,4 +84,9 @@ API_SYSEX_ENABLE = no
RGBLIGHT_ENABLE = yes
RGB_MATRIX_ENABLE = no # enable later
+ifeq ($(strip $(RGB_MATRIX_ENABLE)), no)
+ SRC += i2c_master.c
+endif
+
+
LAYOUTS = ergodox