diff options
Diffstat (limited to 'users/drashna/rules.mk')
-rw-r--r-- | users/drashna/rules.mk | 41 |
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 @@ | |||
1 | SRC += $(USER_PATH)/drashna.c \ | 1 | SRC += $(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 | ||
4 | ifneq ($(PLATFORM),CHIBIOS) | 6 | ifneq ($(PLATFORM),CHIBIOS) |
5 | ifneq ($(strip $(LTO_SUPPORTED)), no) | 7 | ifneq ($(strip $(LTO_SUPPORTED)), no) |
@@ -8,6 +10,7 @@ ifneq ($(PLATFORM),CHIBIOS) | |||
8 | endif | 10 | endif |
9 | SPACE_CADET_ENABLE = no | 11 | SPACE_CADET_ENABLE = no |
10 | GRAVE_ESC_ENABLE = no | 12 | GRAVE_ESC_ENABLE = no |
13 | # DEBUG_MATRIX_SCAN_RATE_ENABLE = api | ||
11 | 14 | ||
12 | ifneq ($(strip $(NO_SECRETS)), yes) | 15 | ifneq ($(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 |
19 | endif | 22 | endif |
20 | 23 | ||
24 | ifeq ($(strip $(MAKE_BOOTLOADER)), yes) | ||
25 | OPT_DEFS += -DMAKE_BOOTLOADER | ||
26 | endif | ||
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 ... | ||
31 | ifeq ($(strip $(PROTOCOL)), VUSB) | ||
32 | NKRO_ENABLE := no | ||
33 | endif | ||
34 | |||
21 | CUSTOM_UNICODE_ENABLE ?= yes | 35 | CUSTOM_UNICODE_ENABLE ?= yes |
22 | ifeq ($(strip $(CUSTOM_UNICODE_ENABLE)), yes) | 36 | ifeq ($(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 |
29 | endif | 43 | endif |
@@ -62,17 +76,6 @@ ifdef CONSOLE_ENABLE | |||
62 | endif | 76 | endif |
63 | endif | 77 | endif |
64 | 78 | ||
65 | ifeq ($(strip $(MAKE_BOOTLOADER)), yes) | ||
66 | OPT_DEFS += -DMAKE_BOOTLOADER | ||
67 | endif | ||
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 ... | ||
72 | ifeq ($(strip $(PROTOCOL)), VUSB) | ||
73 | NKRO_ENABLE = no | ||
74 | endif | ||
75 | |||
76 | CUSTOM_OLED_DRIVER ?= yes | 79 | CUSTOM_OLED_DRIVER ?= yes |
77 | ifeq ($(strip $(OLED_ENABLE)), yes) | 80 | ifeq ($(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 |
97 | endif | 100 | endif |
98 | 101 | ||
99 | # DEBUG_MATRIX_SCAN_RATE_ENABLE = api | 102 | AUTOCORRECTION_ENABLE ?= no |
100 | |||
101 | AUTOCORRECTION_ENABLE ?= yes | ||
102 | ifeq ($(strip $(AUTOCORRECTION_ENABLE)), yes) | 103 | ifeq ($(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 |
105 | endif | 106 | endif |
106 | 107 | ||
107 | CAPS_WORD_ENABLE ?= yes | 108 | CAPS_WORD_ENABLE ?= no |
108 | ifeq ($(strip $(CAPS_WORD_ENABLE)), yes) | 109 | ifeq ($(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 |