rules.mk 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ifdef ASTAR
  2. MCU = atmega32u4
  3. CFLAGS = -D ASTAR
  4. USB = /dev/cu.usbmodem14141
  5. SCULPT_UPLOAD_COMMAND = while [ ! -r $(USB) ]; do sleep 1; done ; avrdude -p $(MCU) -c avr109 -U flash:w:$(TARGET).hex -P $(USB)
  6. else
  7. MCU = at90usb1286
  8. SCULPT_UPLOAD_COMMAND = teensy_loader_cli -w -mmcu=$(MCU) $(TARGET).hex
  9. endif
  10. # Bootloader selection
  11. # Teensy halfkay
  12. # Pro Micro caterina
  13. # Atmel DFU atmel-dfu
  14. # LUFA DFU lufa-dfu
  15. # QMK DFU qmk-dfu
  16. # ATmega32A bootloadHID
  17. # ATmega328P USBasp
  18. ifdef ASTAR
  19. BOOTLOADER = caterina
  20. else
  21. BOOTLOADER = atmel-dfu
  22. endif
  23. BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
  24. MOUSEKEY_ENABLE = no # Mouse keys(+4700)
  25. EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
  26. CONSOLE_ENABLE = yes # Console for debug(+400)
  27. COMMAND_ENABLE = yes # Commands for debug and configuration
  28. # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
  29. SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
  30. # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
  31. NKRO_ENABLE = no # USB Nkey Rollover
  32. BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
  33. UNICODE_ENABLE = no # Unicode
  34. BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
  35. AUDIO_ENABLE = no # Audio output on port C6
  36. # Project specific files
  37. SRC = babblePaste.c