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.vusb 2.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. #
  2. # Makefile for V-USB
  3. #
  4. # Target file name (without extension).
  5. TARGET = ps2_usb_vusb
  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. ps2_usart.c
  16. CONFIG_H = config_vusb.h
  17. # V-USB debug level: To use ps2_usart.c level must be 0
  18. # ps2_usart.c requires USART to receive PS/2 signal.
  19. OPT_DEFS = -DDEBUG_LEVEL=0
  20. # MCU name, you MUST set this to match the board you are using
  21. # type "make clean" after changing this, so all files will be rebuilt
  22. #MCU = at90usb162 # Teensy 1.0
  23. #MCU = atmega32u4 # Teensy 2.0
  24. #MCU = at90usb646 # Teensy++ 1.0
  25. #MCU = at90usb1286 # Teensy++ 2.0
  26. MCU = atmega168
  27. # Processor frequency.
  28. # Normally the first thing your program should do is set the clock prescaler,
  29. # so your program will run at the correct speed. You should also set this
  30. # variable to same clock speed. The _delay_ms() macro uses this, and many
  31. # examples use this variable to calculate timings. Do not add a "UL" here.
  32. F_CPU = 20000000
  33. # Build Options
  34. # comment out to disable the options.
  35. #
  36. MOUSEKEY_ENABLE = yes # Mouse keys
  37. EXTRAKEY_ENABLE = yes # Audio control and System control
  38. #NKRO_ENABLE = yes # USB Nkey Rollover
  39. NO_UART = yes # UART is unavailable
  40. #---------------- Programming Options --------------------------
  41. AVRDUDE = avrdude
  42. # Type: avrdude -c ? to get a full listing.
  43. AVRDUDE_PROGRAMMER = usbasp
  44. AVRDUDE_PORT =
  45. AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex
  46. #AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
  47. # Uncomment the following if you want avrdude's erase cycle counter.
  48. # Note that this counter needs to be initialized first using -Yn,
  49. # see avrdude manual.
  50. #AVRDUDE_ERASE_COUNTER = -y
  51. # Uncomment the following if you do /not/ wish a verification to be
  52. # performed after programming the device.
  53. #AVRDUDE_NO_VERIFY = -V
  54. # Increase verbosity level. Please use this when submitting bug
  55. # reports about avrdude. See <http://savannah.nongnu.org/projects/avrdude>
  56. # to submit bug reports.
  57. #AVRDUDE_VERBOSE = -v -v
  58. #AVRDUDE_FLAGS = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER)
  59. AVRDUDE_FLAGS = -p $(MCU) -c $(AVRDUDE_PROGRAMMER)
  60. AVRDUDE_FLAGS += $(AVRDUDE_NO_VERIFY)
  61. AVRDUDE_FLAGS += $(AVRDUDE_VERBOSE)
  62. AVRDUDE_FLAGS += $(AVRDUDE_ERASE_COUNTER)
  63. PROGRAM_CMD = $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
  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