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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

Makefile.iwrap 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. #
  2. # Makefile for iWRAP
  3. #
  4. # Target file name (without extension).
  5. TARGET = hhkb_iwrap
  6. # Directory common source filess exist
  7. TOP_DIR = ../..
  8. # Directory keyboard dependent files exist
  9. TARGET_DIR = .
  10. # keyboard dependent files
  11. SRC = main.c \
  12. keymap.c \
  13. matrix.c \
  14. led.c
  15. CONFIG_H = config_iwrap.h
  16. # V-USB debug level: To use ps2_usart.c level must be 0
  17. # ps2_usart.c requires USART to receive PS/2 signal.
  18. OPT_DEFS = -DDEBUG_LEVEL=0
  19. # MCU name, you MUST set this to match the board you are using
  20. # type "make clean" after changing this, so all files will be rebuilt
  21. MCU = atmega168p
  22. # avrdude doesn't know atmega168p
  23. AVRDUDE_MCU = atmega168
  24. # Processor frequency.
  25. # Normally the first thing your program should do is set the clock prescaler,
  26. # so your program will run at the correct speed. You should also set this
  27. # variable to same clock speed. The _delay_ms() macro uses this, and many
  28. # examples use this variable to calculate timings. Do not add a "UL" here.
  29. F_CPU = 12000000
  30. # Build Options
  31. # comment out to disable the options.
  32. #
  33. MOUSEKEY_ENABLE = yes # Mouse keys
  34. EXTRAKEY_ENABLE = yes # Audio control and System control
  35. #NKRO_ENABLE = yes # USB Nkey Rollover
  36. #---------------- Programming Options --------------------------
  37. AVRDUDE = avrdude
  38. # Type: avrdude -c ? to get a full listing.
  39. AVRDUDE_PROGRAMMER = usbasp
  40. AVRDUDE_PORT =
  41. AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex
  42. #AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
  43. # Uncomment the following if you want avrdude's erase cycle counter.
  44. # Note that this counter needs to be initialized first using -Yn,
  45. # see avrdude manual.
  46. #AVRDUDE_ERASE_COUNTER = -y
  47. # Uncomment the following if you do /not/ wish a verification to be
  48. # performed after programming the device.
  49. #AVRDUDE_NO_VERIFY = -V
  50. # Increase verbosity level. Please use this when submitting bug
  51. # reports about avrdude. See <http://savannah.nongnu.org/projects/avrdude>
  52. # to submit bug reports.
  53. #AVRDUDE_VERBOSE = -v -v
  54. #AVRDUDE_FLAGS = -p $(AVRDUDE_MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER)
  55. AVRDUDE_FLAGS = -p $(AVRDUDE_MCU) -c $(AVRDUDE_PROGRAMMER)
  56. AVRDUDE_FLAGS += $(AVRDUDE_NO_VERIFY)
  57. AVRDUDE_FLAGS += $(AVRDUDE_VERBOSE)
  58. AVRDUDE_FLAGS += $(AVRDUDE_ERASE_COUNTER)
  59. PROGRAM_CMD = $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
  60. # Search Path
  61. VPATH = $(TARGET_DIR)
  62. include $(TOP_DIR)/protocol/iwrap.mk
  63. # To be swatchable btween Bluetooth and USB. Comment out if you don't need USB.
  64. include $(TOP_DIR)/protocol/vusb.mk
  65. include $(TOP_DIR)/protocol.mk
  66. include $(TOP_DIR)/common.mk
  67. include $(TOP_DIR)/rules.mk