Keyboard firmwares for Atmel AVR and Cortex-M
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.pjrc 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Target file name (without extension).
  2. TARGET = next_usb
  3. # Directory common source filess exist
  4. TMK_DIR = ../../tmk_core
  5. # Directory keyboard dependent files exist
  6. TARGET_DIR = .
  7. # keyboard dependent files
  8. SRC = keymap.c \
  9. matrix.c \
  10. led.c
  11. CONFIG_H = config.h
  12. # MCU name, you MUST set this to match the board you are using
  13. # type "make clean" after changing this, so all files will be rebuilt
  14. #MCU = at90usb162 # Teensy 1.0
  15. MCU = atmega32u4 # Teensy 2.0
  16. #MCU = at90usb646 # Teensy++ 1.0
  17. #MCU = at90usb1286 # Teensy++ 2.0
  18. # Processor frequency.
  19. # Normally the first thing your program should do is set the clock prescaler,
  20. # so your program will run at the correct speed. You should also set this
  21. # variable to same clock speed. The _delay_ms() macro uses this, and many
  22. # examples use this variable to calculate timings. Do not add a "UL" here.
  23. F_CPU = 16000000
  24. # Boot Section Size in *bytes*
  25. # Teensy halfKay 512
  26. # Teensy++ halfKay 1024
  27. # Atmel DFU loader 4096
  28. # LUFA bootloader 4096
  29. # USBaspLoader 2048
  30. OPT_DEFS += -DBOOTLOADER_SIZE=4096
  31. # Build Options
  32. # *Comment out* to disable the options.
  33. #
  34. #BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
  35. MOUSEKEY_ENABLE = yes # Mouse keys
  36. EXTRAKEY_ENABLE = yes # Audio control and System control
  37. CONSOLE_ENABLE = yes # Console for debug(+400)
  38. COMMAND_ENABLE = yes # Commands for debug and configuration
  39. #NKRO_ENABLE = yes # USB Nkey Rollover
  40. SRC += next_kbd.c
  41. # Search Path
  42. VPATH += $(TARGET_DIR)
  43. VPATH += $(TMK_DIR)
  44. include $(TMK_DIR)/protocol.mk
  45. include $(TMK_DIR)/protocol/pjrc.mk
  46. include $(TMK_DIR)/common.mk
  47. include $(TMK_DIR)/rules.mk