]> git.donarmstrong.com Git - qmk_firmware.git/blob - users/drashna/rules.mk
Keymap: Update for Drashna code - Proton C Prep Edition (#4708)
[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 EXTRAFLAGS += -flto
13
14 ifeq ($(strip $(NO_SECRETS)), yes)
15     OPT_DEFS += -DNO_SECRETS
16 endif
17
18 ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
19   SRC += rgb_stuff.c
20   ifeq ($(strip $(INDICATOR_LIGHTS)), yes)
21       OPT_DEFS += -DINDICATOR_LIGHTS
22   endif
23   ifeq ($(strip $(RGBLIGHT_TWINKLE)), yes)
24     OPT_DEFS += -DRGBLIGHT_TWINKLE
25   endif
26   ifeq ($(strip $(RGBLIGHT_NOEEPROM)), yes)
27     OPT_DEFS += -DRGBLIGHT_NOEEPROM
28   endif
29 endif
30
31 ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes)
32   SRC += rgb_stuff.c
33 endif
34
35
36 ifeq ($(strip $(MACROS_ENABLED)), yes)
37     OPT_DEFS += -DMACROS_ENABLED
38 endif
39
40 ifdef CONSOLE_ENABLE
41   ifeq ($(strip $(KEYLOGGER_ENABLE)), yes)
42     OPT_DEFS += -DKEYLOGGER_ENABLE
43   endif
44 endif