]> git.donarmstrong.com Git - qmk_firmware.git/blob - users/drashna/rules.mk
[Keymap] Update to Drashna Keymaps (#5594)
[qmk_firmware.git] / users / drashna / rules.mk
1 SRC += drashna.c \
2        process_records.c
3
4 ifneq ("$(wildcard $(USER_PATH)/secrets.c)","")
5   SRC += secrets.c
6 endif
7
8 ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
9   SRC += tap_dances.c
10 endif
11
12 ifeq ($(PLATFORM),AVR)
13   EXTRAFLAGS += -flto
14 endif
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 ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes)
37   SRC += rgb_stuff.c
38 endif
39
40
41 ifeq ($(strip $(MACROS_ENABLED)), yes)
42     OPT_DEFS += -DMACROS_ENABLED
43 endif
44
45 ifdef CONSOLE_ENABLE
46   ifeq ($(strip $(KEYLOGGER_ENABLE)), yes)
47     OPT_DEFS += -DKEYLOGGER_ENABLE
48   endif
49 endif
50
51 ifeq ($(strip $(MAKE_BOOTLOADER)), yes)
52     OPT_DEFS += -DMAKE_BOOTLOADER
53 endif