diff options
Diffstat (limited to 'users/curry/rules.mk')
| -rw-r--r-- | users/curry/rules.mk | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/users/curry/rules.mk b/users/curry/rules.mk new file mode 100644 index 000000000..2ebb80794 --- /dev/null +++ b/users/curry/rules.mk | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | SRC += curry.c \ | ||
| 2 | process_records.c | ||
| 3 | |||
| 4 | LTO_ENABLE = yes | ||
| 5 | SPACE_CADET_ENABLE = no | ||
| 6 | |||
| 7 | ifneq ($(strip $(NO_SECRETS)), yes) | ||
| 8 | ifneq ("$(wildcard $(USER_PATH)/secrets.c)","") | ||
| 9 | SRC += secrets.c | ||
| 10 | endif | ||
| 11 | ifeq ($(strip $(NO_SECRETS)), lite) | ||
| 12 | OPT_DEFS += -DNO_SECRETS | ||
| 13 | endif | ||
| 14 | endif | ||
| 15 | |||
| 16 | ifeq ($(strip $(TAP_DANCE_ENABLE)), yes) | ||
| 17 | SRC += tap_dances.c | ||
| 18 | endif | ||
| 19 | |||
| 20 | ifeq ($(strip $(OLED_DRIVER_ENABLE)), yes) | ||
| 21 | SRC += oled.c | ||
| 22 | endif | ||
| 23 | |||
| 24 | ifeq ($(strip $(RGBLIGHT_ENABLE)), yes) | ||
| 25 | SRC += rgb_stuff.c | ||
| 26 | ifeq ($(strip $(INDICATOR_LIGHTS)), yes) | ||
| 27 | OPT_DEFS += -DINDICATOR_LIGHTS | ||
| 28 | endif | ||
| 29 | ifeq ($(strip $(RGBLIGHT_TWINKLE)), yes) | ||
| 30 | OPT_DEFS += -DRGBLIGHT_TWINKLE | ||
| 31 | endif | ||
| 32 | ifeq ($(strip $(RGBLIGHT_NOEEPROM)), yes) | ||
| 33 | OPT_DEFS += -DRGBLIGHT_NOEEPROM | ||
| 34 | endif | ||
| 35 | ifeq ($(strip $(RGBLIGHT_STARTUP_ANIMATION)), yes) | ||
| 36 | OPT_DEFS += -DRGBLIGHT_STARTUP_ANIMATION | ||
| 37 | endif | ||
| 38 | endif | ||
| 39 | |||
| 40 | RGB_MATRIX_ENABLE ?= no | ||
| 41 | ifneq ($(strip $(RGB_MATRIX_ENABLE)), no) | ||
| 42 | SRC += rgb_stuff.c | ||
| 43 | endif | ||
| 44 | |||
| 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 | ||
| 55 | |||
| 56 | # At least until build.mk or the like drops, this is here to prevent | ||
| 57 | # VUSB boards from enabling NKRO, as they do not support it. Ideally | ||
| 58 | # this should be handled per keyboard, but until that happens ... | ||
| 59 | ifeq ($(strip $(PROTOCOL)), VUSB) | ||
| 60 | NKRO_ENABLE = no | ||
| 61 | endif | ||
