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 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. # Hey Emacs, this is a -*- makefile -*-
  2. #----------------------------------------------------------------------------
  3. # WinAVR Makefile Template written by Eric B. Weddington, Jörg Wunsch, et al.
  4. #
  5. # Released to the Public Domain
  6. #
  7. # Additional material for this makefile was written by:
  8. # Peter Fleury
  9. # Tim Henigan
  10. # Colin O'Flynn
  11. # Reiner Patommel
  12. # Markus Pfaff
  13. # Sander Pool
  14. # Frederik Rouleau
  15. # Carlos Lamas
  16. #
  17. #----------------------------------------------------------------------------
  18. # On command line:
  19. #
  20. # make all = Make software.
  21. #
  22. # make clean = Clean out built project files.
  23. #
  24. # make coff = Convert ELF to AVR COFF.
  25. #
  26. # make extcoff = Convert ELF to AVR Extended COFF.
  27. #
  28. # make program = Download the hex file to the device, using avrdude.
  29. # Please customize the avrdude settings below first!
  30. #
  31. # make debug = Start either simulavr or avarice as specified for debugging,
  32. # with avr-gdb or avr-insight as the front end for debugging.
  33. #
  34. # make filename.s = Just compile filename.c into the assembler code only.
  35. #
  36. # make filename.i = Create a preprocessed source file for use in submitting
  37. # bug reports to the GCC project.
  38. #
  39. # To rebuild project do "make clean" then "make all".
  40. #----------------------------------------------------------------------------
  41. VENDOR_ID = 0xFEED
  42. PRODUCT_ID = 0xCAFE
  43. MANUFACTURER = 't.m.k.'
  44. PRODUCT = 't.m.k. HHKB pro'
  45. DESCRIPTION = 't.m.k. firmware for HHKB pro'
  46. MOUSE_DELAY_TIME = 127
  47. # Target file name (without extension).
  48. TARGET = tmk_hhkb
  49. # Directory common source filess exist
  50. COMMON_DIR = ..
  51. # Directory keyboard dependent files exist
  52. TARGET_DIR = .
  53. # keyboard dependent files
  54. TARGET_SRC = keymap.c \
  55. matrix.c
  56. # MCU name, you MUST set this to match the board you are using
  57. # type "make clean" after changing this, so all files will be rebuilt
  58. #MCU = at90usb162 # Teensy 1.0
  59. #MCU = atmega32u4 # Teensy 2.0
  60. #MCU = at90usb646 # Teensy++ 1.0
  61. MCU = at90usb1286 # Teensy++ 2.0
  62. # Processor frequency.
  63. # Normally the first thing your program should do is set the clock prescaler,
  64. # so your program will run at the correct speed. You should also set this
  65. # variable to same clock speed. The _delay_ms() macro uses this, and many
  66. # examples use this variable to calculate timings. Do not add a "UL" here.
  67. F_CPU = 16000000
  68. include $(COMMON_DIR)/Makefile.common