rules.mk 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #----------------------------------------------------------------------------
  2. # make gergo:germ:dfu
  3. # Make sure you have dfu-programmer installed!
  4. #----------------------------------------------------------------------------
  5. # Firmware options
  6. BALLER = no # Enable to ball out
  7. BALLSTEP = 20 # Multiple in px to move, multiplied by layer number
  8. SCROLLSTEP = 1 # Lines to scroll with ball
  9. MOUSEKEY_ENABLE = yes # Mouse keys, needed for baller
  10. OLED_DRIVER_ENABLE = yes
  11. LOCAL_GLCDFONT = yes
  12. #Debug options
  13. VERBOSE = yes
  14. DEBUG_MATRIX_SCAN_RATE = no
  15. DEBUG_BALLER = no
  16. DEBUG_MATRIX = yes
  17. # A bunch of stuff that you shouldn't touch unless you
  18. # know what you're doing.
  19. #
  20. # No touchy, capiche?
  21. ifneq ($(strip $(BALLSTEP)),)
  22. OPT_DEFS += -DTRKSTEP=$(strip $(BALLSTEP))
  23. endif
  24. ifneq ($(strip $(SCROLLSTEP)),)
  25. OPT_DEFS += -DSCROLLSTEP=$(strip $(SCROLLSTEP))
  26. endif
  27. ifeq ($(strip $(BALLER)), yes)
  28. POINTING_DEVICE_ENABLE = yes
  29. OPT_DEFS += -DBALLER
  30. endif
  31. ifeq ($(strip $(DEBUG_BALLER)), yes)
  32. OPT_DEFS += -DDEBUG_BALLER
  33. endif
  34. ifeq ($(strip $(DEBUG_MATRIX)), yes)
  35. OPT_DEFS += -DDEBUG_MATRIX
  36. endif