forked from filterpaper/qmk_userspace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rules.mk
73 lines (67 loc) · 1.63 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Disable unused features
VIA_ENABLE = no
WPM_ENABLE = no
NKRO_ENABLE = no
AUDIO_ENABLE = no
MAGIC_ENABLE = no
STENO_ENABLE = no
LEADER_ENABLE = no
CONSOLE_ENABLE = no
COMMAND_ENABLE = no
UNICODE_ENABLE = no
MOUSEKEY_ENABLE = no
TERMINAL_ENABLE = no
KEY_LOCK_ENABLE = no
RGBLIGHT_ENABLE = no
BOOTMAGIC_ENABLE = no
SLEEP_LED_ENABLE = no
TAP_DANCE_ENABLE = no
VELOCIKEY_ENABLE = no
SWAP_HANDS_ENABLE = no
SPACE_CADET_ENABLE = no
# Common features
LTO_ENABLE = yes
EXTRAKEY_ENABLE = yes
MOUSEKEY_ENABLE = yes
BOOTLOADER = atmel-dfu
BOOTMAGIC_ENABLE = yes
# Main source file and source paths
SRC += filterpaper.c
VPATH += $(USER_PATH)/oled $(USER_PATH)/rgb $(USER_PATH)/word
# Combo support
COMBO_ENABLE = yes
SRC += combos.c
# Small split keyboards
ifeq ($(KEYBOARD), $(filter $(KEYBOARD), 3w6/rev2 a_dux cradio))
SWAP_HANDS_ENABLE = yes
OPT_DEFS += -DWORD_FEATURES
SRC += autocorrection.c caps_word.c
endif
# Boardsource's Mark65 and Technik
ifeq ($(findstring boardsource/, $(KEYBOARD)), boardsource/)
RGB_MATRIX_ENABLE = yes
RGB_MATRIX_CUSTOM_USER = yes
OPT_DEFS += -DWORD_FEATURES
SRC += rgb-matrix.c autocorrection.c caps_word.c
endif
# Corne CRKBD
ifeq ($(KEYBOARD), crkbd/rev1)
ifneq ($(strip $(OLED)),)
OLED_ENABLE = yes
OPT_DEFS += -D${OLED}
ifeq ($(OLED), $(filter $(OLED), LEFTCAT RIGHTCAT CAT))
SRC += oled-icons.c oled-bongocat.c
else ifeq ($(OLED), $(filter $(OLED), FELIX LUNA))
SRC += oled-icons.c oled-luna.c
endif
endif
ifneq ($(strip $(KB)),)
RGB_MATRIX_ENABLE = yes
RGB_MATRIX_CUSTOM_USER = yes
SRC += rgb-matrix.c
OPT_DEFS += -D${KB}
endif
ifeq ($(strip $(KB)), $(strip $(OLED)))
LTO_ENABLE = no
endif
endif