rules.mk 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. # Copyright 2021 Batuhan Başerdem
  2. # <baserdem.batuhan@gmail.com> @bbaserdem
  3. #
  4. # This program is free software: you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation, either version 2 of the License, or
  7. # (at your option) any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. # Common compilation flags
  17. LTO_ENABLE = yes
  18. # These should be enabled in all boards
  19. MOUSEKEY_ENABLE = yes # Mouse emulation keys
  20. EXTRAKEY_ENABLE = yes # OS signals like volume control
  21. UNICODEMAP_ENABLE = yes # Used for unicode character emulation
  22. # These should be disabled in all boards
  23. BOOTMAGIC_ENABLE = no # Access to EEPROM settings, not needed
  24. CONSOLE_ENABLE = no # Allows console output with a command
  25. COMMAND_ENABLE = no # Some bootmagic thing i dont use
  26. SLEEP_LED_ENABLE = no # Breathes LED's when computer is asleep. Untested.
  27. MIDI_ENABLE = no # Midi driver (untested)
  28. UNICODE_ENABLE = no # We use unicodemap, not unicode
  29. UCIS_ENABLE = no # We use unicodemap, not ucis
  30. VARIABLE_TRACE = no # Allows debugging variables
  31. KEY_LOCK_ENABLE = no # Allows locking any key. Not used in general
  32. RGBLIGHT_ENABLE = no # LED strip, but there is RGB_MATRIX instead
  33. TAP_DANCE_ENABLE = no # Tap dance keys; i don't use tap dance
  34. # These features can be disabled at whim
  35. NKRO_ENABLE ?= yes # Default is 6KRO
  36. VELOCIKEY_ENABLE ?= yes # Speed effects change with typing speed
  37. WPM_ENABLE ?= yes # Get WPM reports as you type
  38. # Manually configure these on each keyboard individually
  39. # AUDIO_ENABLE # Audio stuff
  40. # BACKLIGHT_ENABLE # Switch LEDs
  41. # ENCODER_ENABLE # Rotary encoder
  42. # RGB_MATRIX_ENABLE # RGB LEDs
  43. # OLED_ENABLE # For OLED
  44. # Userspace code
  45. SRC += bbaserdem.c
  46. # Macros
  47. SRC += bb-macro.c
  48. # Audio code
  49. ifeq ($(strip $(AUDIO_ENABLE)), yes)
  50. SRC += bb-audio.c
  51. endif
  52. # Rotary encoder stuff
  53. ifeq ($(strip $(ENCODER_ENABLE)), yes)
  54. SRC += bb-encoder.c
  55. endif
  56. # RGB LED (Underglow) code
  57. ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
  58. SRC += bb-underglow.c
  59. endif
  60. # RGB LED (Perkey) code
  61. ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes)
  62. SRC += bb-rgb.c
  63. endif
  64. # Backlight code
  65. ifeq ($(strip $(BACKLIGHT_ENABLE)), yes)
  66. SRC += bb-backlight.c
  67. endif
  68. # OLED code
  69. ifeq ($(strip $(OLED_ENABLE)), yes)
  70. SRC += bb-oled.c
  71. ifeq ($(strip $(CTPC)), yes)
  72. SRC += bb-oled-extra.c
  73. endif
  74. endif