forked from filterpaper/qmk_userspace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrules.mk
40 lines (36 loc) · 955 Bytes
/
rules.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Disable unused features
MAGIC_ENABLE = no
CONSOLE_ENABLE = no
UNICODE_ENABLE = no
GRAVE_ESC_ENABLE = no
SPACE_CADET_ENABLE = no
# Enable common features
LTO_ENABLE = yes
COMBO_ENABLE = yes
EXTRAKEY_ENABLE = yes
MOUSEKEY_ENABLE = yes
BOOTMAGIC_ENABLE = yes
SWAP_HANDS_ENABLE = yes
VPATH += $(USER_PATH)/autocorrect $(USER_PATH)/oled $(USER_PATH)/rgb
INTROSPECTION_KEYMAP_C = filterpaper.c
SRC += autocorrect.c
ifneq ($(strip $(CONVERT_TO)),)
MAKECMDGOALS = uf2-split-$(SPLIT)
ifeq ($(strip $(CONVERT_TO)), kb2040)
RGB_MATRIX_ENABLE = yes
RGB_MATRIX_CUSTOM_USER = yes
SRC += rgb-matrix.c
endif
endif
ifeq ($(strip $(KEYBOARD)), crkbd/rev1)
RGB_MATRIX_ENABLE = yes
RGB_MATRIX_CUSTOM_USER = yes
SRC += rgb-matrix.c
OLED_ENABLE = yes
ifneq ($(strip $(OLED)),)
OPT_DEFS += -D$(OLED)
SRC += oled-icons.c oled-luna.c
else
SRC += oled-icons.c oled-bongocat.c
endif
endif