aboutsummaryrefslogtreecommitdiff
path: root/users/drashna/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'users/drashna/rules.mk')
-rw-r--r--users/drashna/rules.mk41
1 files changed, 21 insertions, 20 deletions
diff --git a/users/drashna/rules.mk b/users/drashna/rules.mk
index 32afae22c..445d1cf5a 100644
--- a/users/drashna/rules.mk
+++ b/users/drashna/rules.mk
@@ -1,5 +1,7 @@
1SRC += $(USER_PATH)/drashna.c \ 1SRC += $(USER_PATH)/drashna.c \
2 $(USER_PATH)/keyrecords/process_records.c 2 $(USER_PATH)/callbacks.c \
3 $(USER_PATH)/keyrecords/process_records.c \
4 $(USER_PATH)/keyrecords/tapping.c
3 5
4ifneq ($(PLATFORM),CHIBIOS) 6ifneq ($(PLATFORM),CHIBIOS)
5 ifneq ($(strip $(LTO_SUPPORTED)), no) 7 ifneq ($(strip $(LTO_SUPPORTED)), no)
@@ -8,6 +10,7 @@ ifneq ($(PLATFORM),CHIBIOS)
8endif 10endif
9SPACE_CADET_ENABLE = no 11SPACE_CADET_ENABLE = no
10GRAVE_ESC_ENABLE = no 12GRAVE_ESC_ENABLE = no
13# DEBUG_MATRIX_SCAN_RATE_ENABLE = api
11 14
12ifneq ($(strip $(NO_SECRETS)), yes) 15ifneq ($(strip $(NO_SECRETS)), yes)
13 ifneq ("$(wildcard $(USER_PATH)/keyrecords/secrets.c)","") 16 ifneq ("$(wildcard $(USER_PATH)/keyrecords/secrets.c)","")
@@ -18,12 +21,23 @@ ifneq ($(strip $(NO_SECRETS)), yes)
18 endif 21 endif
19endif 22endif
20 23
24ifeq ($(strip $(MAKE_BOOTLOADER)), yes)
25 OPT_DEFS += -DMAKE_BOOTLOADER
26endif
27
28# At least until build.mk or the like drops, this is here to prevent
29# VUSB boards from enabling NKRO, as they do not support it. Ideally
30# this should be handled per keyboard, but until that happens ...
31ifeq ($(strip $(PROTOCOL)), VUSB)
32 NKRO_ENABLE := no
33endif
34
21CUSTOM_UNICODE_ENABLE ?= yes 35CUSTOM_UNICODE_ENABLE ?= yes
22ifeq ($(strip $(CUSTOM_UNICODE_ENABLE)), yes) 36ifeq ($(strip $(CUSTOM_UNICODE_ENABLE)), yes)
23 UNICODE_ENABLE = no 37 UNICODE_ENABLE := no
24 UNICODEMAP_ENABLE = no 38 UNICODEMAP_ENABLE := no
25 UCIS_ENABLE = no 39 UCIS_ENABLE := no
26 UNICODE_COMMON = yes 40 UNICODE_COMMON := yes
27 OPT_DEFS += -DCUSTOM_UNICODE_ENABLE 41 OPT_DEFS += -DCUSTOM_UNICODE_ENABLE
28 SRC += $(USER_PATH)/keyrecords/unicode.c 42 SRC += $(USER_PATH)/keyrecords/unicode.c
29endif 43endif
@@ -62,17 +76,6 @@ ifdef CONSOLE_ENABLE
62 endif 76 endif
63endif 77endif
64 78
65ifeq ($(strip $(MAKE_BOOTLOADER)), yes)
66 OPT_DEFS += -DMAKE_BOOTLOADER
67endif
68
69# At least until build.mk or the like drops, this is here to prevent
70# VUSB boards from enabling NKRO, as they do not support it. Ideally
71# this should be handled per keyboard, but until that happens ...
72ifeq ($(strip $(PROTOCOL)), VUSB)
73 NKRO_ENABLE = no
74endif
75
76CUSTOM_OLED_DRIVER ?= yes 79CUSTOM_OLED_DRIVER ?= yes
77ifeq ($(strip $(OLED_ENABLE)), yes) 80ifeq ($(strip $(OLED_ENABLE)), yes)
78 ifeq ($(strip $(CUSTOM_OLED_DRIVER)), yes) 81 ifeq ($(strip $(CUSTOM_OLED_DRIVER)), yes)
@@ -96,15 +99,13 @@ ifeq ($(strip $(CUSTOM_SPLIT_TRANSPORT_SYNC)), yes)
96 endif 99 endif
97endif 100endif
98 101
99# DEBUG_MATRIX_SCAN_RATE_ENABLE = api 102AUTOCORRECTION_ENABLE ?= no
100
101AUTOCORRECTION_ENABLE ?= yes
102ifeq ($(strip $(AUTOCORRECTION_ENABLE)), yes) 103ifeq ($(strip $(AUTOCORRECTION_ENABLE)), yes)
103 SRC += $(USER_PATH)/keyrecords/autocorrection/autocorrection.c 104 SRC += $(USER_PATH)/keyrecords/autocorrection/autocorrection.c
104 OPT_DEFS += -DAUTOCORRECTION_ENABLE 105 OPT_DEFS += -DAUTOCORRECTION_ENABLE
105endif 106endif
106 107
107CAPS_WORD_ENABLE ?= yes 108CAPS_WORD_ENABLE ?= no
108ifeq ($(strip $(CAPS_WORD_ENABLE)), yes) 109ifeq ($(strip $(CAPS_WORD_ENABLE)), yes)
109 SRC += $(USER_PATH)/keyrecords/caps_word.c 110 SRC += $(USER_PATH)/keyrecords/caps_word.c
110 OPT_DEFS += -DCAPS_WORD_ENABLE 111 OPT_DEFS += -DCAPS_WORD_ENABLE