QMK/users/drashna/rules.mk

68 lines
1.8 KiB
Makefile
Raw Normal View History

2020-07-13 18:55:22 +02:00
SRC += drashna.c
SRC += process_records.c
ifneq ($(strip $(DROP_ALT)), yes)
2020-07-13 18:55:22 +02:00
2020-03-23 10:48:11 +01:00
ifneq ($(PLATFORM),CHIBIOS)
LTO_ENABLE = yes
2020-03-23 10:48:11 +01:00
endif
SPACE_CADET_ENABLE = no
GRAVE_ESC_ENABLE = no
2020-03-23 10:48:11 +01:00
ifneq ($(strip $(NO_SECRETS)), yes)
ifneq ("$(wildcard $(USER_PATH)/secrets.c)","")
SRC += secrets.c
endif
ifeq ($(strip $(NO_SECRETS)), lite)
OPT_DEFS += -DNO_SECRETS
endif
2020-03-23 10:48:11 +01:00
endif
ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
SRC += tap_dances.c
2020-03-23 10:48:11 +01:00
endif
ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
SRC += rgb_stuff.c
ifeq ($(strip $(INDICATOR_LIGHTS)), yes)
OPT_DEFS += -DINDICATOR_LIGHTS
endif
ifeq ($(strip $(RGBLIGHT_TWINKLE)), yes)
OPT_DEFS += -DRGBLIGHT_TWINKLE
endif
ifeq ($(strip $(RGBLIGHT_NOEEPROM)), yes)
OPT_DEFS += -DRGBLIGHT_NOEEPROM
endif
ifeq ($(strip $(RGBLIGHT_STARTUP_ANIMATION)), yes)
OPT_DEFS += -DRGBLIGHT_STARTUP_ANIMATION
endif
2020-03-23 10:48:11 +01:00
endif
RGB_MATRIX_ENABLE ?= no
ifneq ($(strip $(RGB_MATRIX_ENABLE)), no)
SRC += rgb_matrix_stuff.c
endif
2020-03-23 10:48:11 +01:00
ifdef CONSOLE_ENABLE
ifeq ($(strip $(KEYLOGGER_ENABLE)), yes)
OPT_DEFS += -DKEYLOGGER_ENABLE
endif
2020-03-23 10:48:11 +01:00
endif
ifeq ($(strip $(MAKE_BOOTLOADER)), yes)
OPT_DEFS += -DMAKE_BOOTLOADER
endif
2020-03-23 10:48:11 +01:00
# At least until build.mk or the like drops, this is here to prevent
# VUSB boards from enabling NKRO, as they do not support it. Ideally
# this should be handled per keyboard, but until that happens ...
ifeq ($(strip $(PROTOCOL)), VUSB)
NKRO_ENABLE = no
endif
2020-05-26 22:31:54 +02:00
ifeq ($(strip $(OLED_DRIVER_ENABLE)), yes)
SRC += oled_stuff.c
endif
endif