summaryrefslogtreecommitdiffstats
path: root/users/replicaJunction/rules.mk
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-08-14 01:15:07 +0000
committerQMK Bot <hello@qmk.fm>2021-08-14 01:15:07 +0000
commite80772da401e545887b84b8addc4169b090cfa3e (patch)
tree5bc04994077f4e34b1f1c50bd9e42c4e413b8e32 /users/replicaJunction/rules.mk
parent1412a785ed012f7c2695632fc48ef080fc440f80 (diff)
parentade989962af613b24687f20f54e2dd0e37240216 (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'users/replicaJunction/rules.mk')
-rw-r--r--users/replicaJunction/rules.mk32
1 files changed, 32 insertions, 0 deletions
diff --git a/users/replicaJunction/rules.mk b/users/replicaJunction/rules.mk
index 30a330195d..addaa04d97 100644
--- a/users/replicaJunction/rules.mk
+++ b/users/replicaJunction/rules.mk
@@ -1 +1,33 @@
SRC += replicaJunction.c
+
+# Only load these source files if the features are enabled. Keyboards can
+# enable or disable these features in their own rules.mk files.
+
+ifeq ($(strip $(USER_CAPS_WORD_ENABLE)), yes)
+ SRC += features/caps_word.c
+ OPT_DEFS += -DUSER_CAPS_WORD_ENABLE
+endif
+
+ifeq ($(strip $(USER_MOUSE_JIGGLE_ENABLE)), yes)
+ SRC += features/mouse_jiggle.c
+ OPT_DEFS += -DUSER_MOUSE_JIGGLE_ENABLE
+endif
+
+ifeq ($(strip $(USER_NUM_WORD_ENABLE)), yes)
+ SRC += features/num_word.c
+ OPT_DEFS += -DUSER_NUM_WORD_ENABLE
+endif
+
+ifeq ($(strip $(USER_SECRETS_ENABLE)), yes)
+ SRC += features/secrets.c
+ OPT_DEFS += -DUSER_SECRETS_ENABLE
+endif
+
+ifeq ($(strip $(USER_SUPER_ALT_TAB_ENABLE)), yes)
+ SRC += features/super_alt_tab.c
+ OPT_DEFS += -DUSER_SUPER_ALT_TAB_ENABLE
+endif
+
+# Define these last so any other logic can set up some defines first
+SRC += matrix_scan.c \
+ process_records.c