-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathrules.mk
37 lines (32 loc) · 909 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
# Disable unused features
MAGIC_ENABLE = no
UNICODE_ENABLE = no
GRAVE_ESC_ENABLE = no
SPACE_CADET_ENABLE = no
# Enable common features
LTO_ENABLE = yes
COMBO_ENABLE = yes
SWAP_HANDS_ENABLE = yes
VPATH += $(USER_PATH)/features
INTROSPECTION_KEYMAP_C = filterpaper.c
SRC += autocorrect.c
ifneq ($(strip $(CONVERT_TO)),)
EEPROM_DRIVER = transient
override TARGET := $(subst /,_,$(KEYBOARD))_$(strip $(CONVERT_TO))
ifneq ($(filter left right, $(SPLIT)),)
MAKECMDGOALS = uf2-split-$(strip $(SPLIT))
override TARGET := $(TARGET)_$(strip $(SPLIT))
endif
endif
ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes)
RGB_MATRIX_CUSTOM_USER = yes
SRC += rgb_matrix.c
endif
ifeq ($(strip $(OLED_ENABLE)), yes)
ifneq ($(strip $(OLED)),)
OPT_DEFS += -D$(strip $(OLED))
SRC += oled_icons.c oled_luna.c
else
SRC += oled_icons.c oled_bongocat.c
endif
endif