]> git.donarmstrong.com Git - qmk_firmware.git/blob - users/drashna/rules.mk
[Keymap] Jarred's Plaid keymap (#6049)
[qmk_firmware.git] / users / drashna / rules.mk
1 SRC += drashna.c \
2        process_records.c
3
4 LINK_TIME_OPTIMIZATION_ENABLE = yes
5 SPACE_CADET_ENABLE            = no
6
7 ifneq ("$(wildcard $(USER_PATH)/secrets.c)","")
8     SRC += secrets.c
9 endif
10
11 ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
12     SRC += tap_dances.c
13 endif
14
15
16
17 ifeq ($(strip $(NO_SECRETS)), yes)
18     OPT_DEFS += -DNO_SECRETS
19 endif
20
21 ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
22     SRC += rgb_stuff.c
23     ifeq ($(strip $(INDICATOR_LIGHTS)), yes)
24         OPT_DEFS += -DINDICATOR_LIGHTS
25     endif
26     ifeq ($(strip $(RGBLIGHT_TWINKLE)), yes)
27         OPT_DEFS += -DRGBLIGHT_TWINKLE
28     endif
29     ifeq ($(strip $(RGBLIGHT_NOEEPROM)), yes)
30         OPT_DEFS += -DRGBLIGHT_NOEEPROM
31     endif
32     ifeq ($(strip $(RGBLIGHT_STARTUP_ANIMATION)), yes)
33         OPT_DEFS += -DRGBLIGHT_STARTUP_ANIMATION
34     endif
35 endif
36
37 RGB_MATRIX_ENABLE ?= no
38 ifneq ($(strip $(RGB_MATRIX_ENABLE)), no)
39     SRC += rgb_stuff.c
40 endif
41
42
43 ifeq ($(strip $(MACROS_ENABLED)), yes)
44     OPT_DEFS += -DMACROS_ENABLED
45 endif
46
47 ifdef CONSOLE_ENABLE
48     ifeq ($(strip $(KEYLOGGER_ENABLE)), yes)
49         OPT_DEFS += -DKEYLOGGER_ENABLE
50     endif
51 endif
52
53 ifeq ($(strip $(MAKE_BOOTLOADER)), yes)
54     OPT_DEFS += -DMAKE_BOOTLOADER
55 endif