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