rules.mk 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #----------------------------------------------------------------------------
  2. # On command line:
  3. #
  4. # make = Make software.
  5. #
  6. # make clean = Clean out built project files.
  7. #
  8. # That's pretty much all you need. To compile, always go make clean,
  9. # followed by make.
  10. #
  11. # For advanced users only:
  12. # make teensy = Download the hex file to the device, using teensy_loader_cli.
  13. # (must have teensy_loader_cli installed).
  14. #
  15. #----------------------------------------------------------------------------
  16. # Build Options
  17. # comment out to disable the options.
  18. #
  19. BOOTMAGIC_ENABLE ?= no # Virtual DIP switch configuration(+1000)
  20. MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700)
  21. EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450)
  22. CONSOLE_ENABLE ?= yes # Console for debug(+400)
  23. COMMAND_ENABLE ?= yes # Commands for debug and configuration
  24. CUSTOM_MATRIX ?= yes # Custom matrix file (taken and adapted from the ErgoDox EZ to acomodate custom number of columns)
  25. SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend
  26. NKRO_ENABLE ?= yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
  27. UNICODE_ENABLE ?= yes # Unicode
  28. BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality on B7 by default
  29. MIDI_ENABLE ?= no # MIDI controls
  30. UNICODE_ENABLE ?= no # Unicode
  31. BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID
  32. AUDIO_ENABLE ?= no # Audio output on port C6
  33. RGBLIGHT_ENABLE = no
  34. #MCU = at90usb1287
  35. MCU = atmega32u4
  36. # Processor frequency.
  37. # This will define a symbol, F_CPU, in all source code files equal to the
  38. # processor frequency in Hz. You can then use this symbol in your source code to
  39. # calculate timings. Do NOT tack on a 'UL' at the end, this will be done
  40. # automatically to create a 32-bit value in your source code.
  41. #
  42. # This will be an integer division of F_USB below, as it is sourced by
  43. # F_USB after it has run through any CPU prescalers. Note that this value
  44. # does not *change* the processor frequency - it should merely be updated to
  45. # reflect the processor speed set externally so that the code can use accurate
  46. # software delays.
  47. F_CPU = 16000000
  48. # for avr upload
  49. USB ?= /dev/cu.usbmodem1421
  50. #
  51. # LUFA specific
  52. #
  53. # Target architecture (see library "Board Types" documentation).
  54. ARCH = AVR8
  55. # Input clock frequency.
  56. # This will define a symbol, F_USB, in all source code files equal to the
  57. # input clock frequency (before any prescaling is performed) in Hz. This value may
  58. # differ from F_CPU if prescaling is used on the latter, and is required as the
  59. # raw input clock is fed directly to the PLL sections of the AVR for high speed
  60. # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
  61. # at the end, this will be done automatically to create a 32-bit value in your
  62. # source code.
  63. #
  64. # If no clock division is performed on the input clock inside the AVR (via the
  65. # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
  66. F_USB = $(F_CPU)
  67. # Boot Section Size in *bytes*
  68. # Teensy halfKay 512
  69. # Teensy++ halfKay 1024
  70. # Atmel DFU loader 4096
  71. # LUFA bootloader 4096
  72. # USBaspLoader 2048
  73. OPT_DEFS += -DBOOTLOADER_SIZE=512