aboutsummaryrefslogtreecommitdiff
path: root/users/curry/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'users/curry/rules.mk')
-rw-r--r--users/curry/rules.mk61
1 files changed, 61 insertions, 0 deletions
diff --git a/users/curry/rules.mk b/users/curry/rules.mk
new file mode 100644
index 000000000..2ebb80794
--- /dev/null
+++ b/users/curry/rules.mk
@@ -0,0 +1,61 @@
1SRC += curry.c \
2 process_records.c
3
4LTO_ENABLE = yes
5SPACE_CADET_ENABLE = no
6
7ifneq ($(strip $(NO_SECRETS)), yes)
8 ifneq ("$(wildcard $(USER_PATH)/secrets.c)","")
9 SRC += secrets.c
10 endif
11 ifeq ($(strip $(NO_SECRETS)), lite)
12 OPT_DEFS += -DNO_SECRETS
13 endif
14endif
15
16ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
17 SRC += tap_dances.c
18endif
19
20ifeq ($(strip $(OLED_DRIVER_ENABLE)), yes)
21 SRC += oled.c
22endif
23
24ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
25 SRC += rgb_stuff.c
26 ifeq ($(strip $(INDICATOR_LIGHTS)), yes)
27 OPT_DEFS += -DINDICATOR_LIGHTS
28 endif
29 ifeq ($(strip $(RGBLIGHT_TWINKLE)), yes)
30 OPT_DEFS += -DRGBLIGHT_TWINKLE
31 endif
32 ifeq ($(strip $(RGBLIGHT_NOEEPROM)), yes)
33 OPT_DEFS += -DRGBLIGHT_NOEEPROM
34 endif
35 ifeq ($(strip $(RGBLIGHT_STARTUP_ANIMATION)), yes)
36 OPT_DEFS += -DRGBLIGHT_STARTUP_ANIMATION
37 endif
38endif
39
40RGB_MATRIX_ENABLE ?= no
41ifneq ($(strip $(RGB_MATRIX_ENABLE)), no)
42 SRC += rgb_stuff.c
43endif
44
45
46ifdef CONSOLE_ENABLE
47 ifeq ($(strip $(KEYLOGGER_ENABLE)), yes)
48 OPT_DEFS += -DKEYLOGGER_ENABLE
49 endif
50endif
51
52ifeq ($(strip $(MAKE_BOOTLOADER)), yes)
53 OPT_DEFS += -DMAKE_BOOTLOADER
54endif
55
56# At least until build.mk or the like drops, this is here to prevent
57# VUSB boards from enabling NKRO, as they do not support it. Ideally
58# this should be handled per keyboard, but until that happens ...
59ifeq ($(strip $(PROTOCOL)), VUSB)
60 NKRO_ENABLE = no
61endif