]> git.donarmstrong.com Git - qmk_firmware.git/blob - users/drashna/rules.mk
964c96c52277a72b36531276cb80ee90cf20e7e3
[qmk_firmware.git] / users / drashna / rules.mk
1 SRC += drashna.c
2
3 ifneq ("$(wildcard $(USER_PATH)/secrets.c)","")
4   SRC += secrets.c
5 endif
6
7 ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
8   SRC += tap_dances.c
9 endif
10
11 EXTRAFLAGS += -flto
12
13 ifeq ($(strip $(NO_SECRETS)), yes)
14     OPT_DEFS += -DNO_SECRETS
15 endif
16
17 ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
18   SRC += rgb_stuff.c
19   ifeq ($(strip $(INDICATOR_LIGHTS)), yes)
20       OPT_DEFS += -DINDICATOR_LIGHTS
21   endif
22   ifeq ($(strip $(RGBLIGHT_TWINKLE)), yes)
23     OPT_DEFS += -DRGBLIGHT_TWINKLE
24   endif
25   ifeq ($(strip $(RGBLIGHT_NOEEPROM)), yes)
26     OPT_DEFS += -DRGBLIGHT_NOEEPROM
27   endif
28 endif
29
30 ifeq ($(strip $(MACROS_ENABLED)), yes)
31     OPT_DEFS += -DMACROS_ENABLED
32 endif
33
34 ifdef CONSOLE_ENABLE
35   ifeq ($(strip $(KEYLOGGER_ENABLE)), yes)
36     OPT_DEFS += -DKEYLOGGER_ENABLE
37   endif
38 endif
39