diff options
Diffstat (limited to 'users/bcat/rules.mk')
| -rw-r--r-- | users/bcat/rules.mk | 43 |
1 files changed, 37 insertions, 6 deletions
diff --git a/users/bcat/rules.mk b/users/bcat/rules.mk index 12c9a89bf..bb4bb11d8 100644 --- a/users/bcat/rules.mk +++ b/users/bcat/rules.mk | |||
| @@ -1,7 +1,10 @@ | |||
| 1 | SRC += bcat.c | 1 | # Enable Bootmagic Lite for keyboards that don't have an easily accessible |
| 2 | 2 | # reset button, but keep it disabled for all others to reduce firmware size. | |
| 3 | # Enable Bootmagic Lite to consistently reset to bootloader and clear EEPROM. | 3 | ifneq ($(filter $(strip $(KEYBOARD)),ai03/polaris dz60 kbdfans/kbd67/hotswap),) |
| 4 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | 4 | BOOTMAGIC_ENABLE = yes |
| 5 | else | ||
| 6 | BOOTMAGIC_ENABLE = no | ||
| 7 | endif | ||
| 5 | 8 | ||
| 6 | # Enable media keys on all keyboards. | 9 | # Enable media keys on all keyboards. |
| 7 | EXTRAKEY_ENABLE = yes | 10 | EXTRAKEY_ENABLE = yes |
| @@ -16,21 +19,49 @@ NKRO_ENABLE = yes | |||
| 16 | # Enable link-time optimization to reduce binary size. | 19 | # Enable link-time optimization to reduce binary size. |
| 17 | LTO_ENABLE = yes | 20 | LTO_ENABLE = yes |
| 18 | 21 | ||
| 19 | # Disable unused build options on all keyboards. | 22 | # Include common utilities shared across all our keymaps. |
| 23 | SRC += bcat.c | ||
| 24 | |||
| 25 | # Include additional utilities that extend optional QMK features only enabled | ||
| 26 | # on some keyboards. | ||
| 27 | ifeq ($(strip $(OLED_ENABLE)), yes) | ||
| 28 | SRC += bcat_oled.c | ||
| 29 | WPM_ENABLE = yes # for WPM and animated "keyboard pet" widgets | ||
| 30 | |||
| 31 | # OLED pets (animated critters that react to typing) take up a lot of | ||
| 32 | # firmware space, so only compile one, and only if requested. | ||
| 33 | BCAT_OLED_PET ?= no | ||
| 34 | ifneq ($(strip $(BCAT_OLED_PET)), no) | ||
| 35 | SRC += bcat_oled_pet_$(strip $(BCAT_OLED_PET)).c | ||
| 36 | OPT_DEFS += -DBCAT_OLED_PET | ||
| 37 | endif | ||
| 38 | endif | ||
| 39 | |||
| 40 | ifeq ($(strip $(RGBLIGHT_ENABLE)), yes) | ||
| 41 | SRC += bcat_rgblight.c | ||
| 42 | endif | ||
| 43 | |||
| 44 | # Disable unwanted build options on all keyboards. (Mouse keys are turned off | ||
| 45 | # due to https://github.com/qmk/qmk_firmware/issues/8323, and the rest are | ||
| 46 | # turned off to reduce firmware size.) | ||
| 20 | COMMAND_ENABLE = no | 47 | COMMAND_ENABLE = no |
| 21 | CONSOLE_ENABLE = no | 48 | CONSOLE_ENABLE = no |
| 22 | MOUSEKEY_ENABLE = no | 49 | MOUSEKEY_ENABLE = no |
| 23 | TERMINAL_ENABLE = no | 50 | TERMINAL_ENABLE = no |
| 24 | 51 | ||
| 25 | # Disable unused hardware options on all keyboards. | 52 | # Disable unwanted hardware options on all keyboards. (Some keyboards turn |
| 53 | # these features on by default even though they aren't actually required.) | ||
| 26 | MIDI_ENABLE = no | 54 | MIDI_ENABLE = no |
| 27 | SLEEP_LED_ENABLE = no | 55 | SLEEP_LED_ENABLE = no |
| 28 | 56 | ||
| 29 | # Disable other unused options on all keyboards. | 57 | # Disable other unused options on all keyboards. |
| 30 | AUTO_SHIFT_ENABLE = no | 58 | AUTO_SHIFT_ENABLE = no |
| 31 | COMBO_ENABLE = no | 59 | COMBO_ENABLE = no |
| 60 | GRAVE_ESC_ENABLE = no | ||
| 32 | KEY_LOCK_ENABLE = no | 61 | KEY_LOCK_ENABLE = no |
| 33 | LEADER_ENABLE = no | 62 | LEADER_ENABLE = no |
| 63 | MAGIC_ENABLE = no | ||
| 64 | SPACE_CADET_ENABLE = no | ||
| 34 | SWAP_HANDS_ENABLE = no | 65 | SWAP_HANDS_ENABLE = no |
| 35 | TAP_DANCE_ENABLE = no | 66 | TAP_DANCE_ENABLE = no |
| 36 | UCIS_ENABLE = no | 67 | UCIS_ENABLE = no |
