aboutsummaryrefslogtreecommitdiff
path: root/users/bcat/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'users/bcat/rules.mk')
-rw-r--r--users/bcat/rules.mk43
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 @@
1SRC += 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. 3ifneq ($(filter $(strip $(KEYBOARD)),ai03/polaris dz60 kbdfans/kbd67/hotswap),)
4BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite 4 BOOTMAGIC_ENABLE = yes
5else
6 BOOTMAGIC_ENABLE = no
7endif
5 8
6# Enable media keys on all keyboards. 9# Enable media keys on all keyboards.
7EXTRAKEY_ENABLE = yes 10EXTRAKEY_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.
17LTO_ENABLE = yes 20LTO_ENABLE = yes
18 21
19# Disable unused build options on all keyboards. 22# Include common utilities shared across all our keymaps.
23SRC += bcat.c
24
25# Include additional utilities that extend optional QMK features only enabled
26# on some keyboards.
27ifeq ($(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
38endif
39
40ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
41 SRC += bcat_rgblight.c
42endif
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.)
20COMMAND_ENABLE = no 47COMMAND_ENABLE = no
21CONSOLE_ENABLE = no 48CONSOLE_ENABLE = no
22MOUSEKEY_ENABLE = no 49MOUSEKEY_ENABLE = no
23TERMINAL_ENABLE = no 50TERMINAL_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.)
26MIDI_ENABLE = no 54MIDI_ENABLE = no
27SLEEP_LED_ENABLE = no 55SLEEP_LED_ENABLE = no
28 56
29# Disable other unused options on all keyboards. 57# Disable other unused options on all keyboards.
30AUTO_SHIFT_ENABLE = no 58AUTO_SHIFT_ENABLE = no
31COMBO_ENABLE = no 59COMBO_ENABLE = no
60GRAVE_ESC_ENABLE = no
32KEY_LOCK_ENABLE = no 61KEY_LOCK_ENABLE = no
33LEADER_ENABLE = no 62LEADER_ENABLE = no
63MAGIC_ENABLE = no
64SPACE_CADET_ENABLE = no
34SWAP_HANDS_ENABLE = no 65SWAP_HANDS_ENABLE = no
35TAP_DANCE_ENABLE = no 66TAP_DANCE_ENABLE = no
36UCIS_ENABLE = no 67UCIS_ENABLE = no