aboutsummaryrefslogtreecommitdiff
path: root/waffle/rules.mk
blob: b8feee7a4a2b3b87dfd274dd213e104d0b313a9b (plain)
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
BOOTMAGIC_ENABLE = yes
EXTRAKEY_ENABLE = yes
NRKO_ENABLE = yes
COMBO_ENABLE = yes
CAPS_WORD_ENABLE = yes
AUTOCORRECT_ENABLE = yes
TOP_SYMBOLS = yes
LTO_ENABLE = yes
TAP_DANCE_ENABLE = yes
UNICODE_COMMON = yes
MOUSEKEY_ENABLE = yes
MAGIC_ENABLE = no
CONSOLE_ENABLE = no
COMMAND_ENABLE = no
DEBOUNCE_TYPE = asym_eager_defer_pk

SRC += waffle.c tapping.c

ifeq ($(strip $(OLED_ENABLE)), yes)
	SRC += oled.c
	WPM_ENABLE = yes
endif

ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes)
	SRC += color.c
endif

ifeq ($(strip $(UNICODE_COMMON)), yes)
	UNICODE_ENABLE = no
	SRC += unicode.c
endif

ifeq ($(PLATFORM), CHIBIOS)
	RANDWORD = yes
	EXTRAFLAGS = -O3
endif

ifeq ($(strip $(RANDWORD)), yes)
	OPT_DEFS += -DRANDWORD
endif