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.

62 lines
1.6 KiB

  1. PROTOCOL_DIR = protocol
  2. ifeq ($(strip $(PS2_MOUSE_ENABLE)), yes)
  3. SRC += $(PROTOCOL_DIR)/ps2_mouse.c
  4. OPT_DEFS += -DPS2_MOUSE_ENABLE
  5. OPT_DEFS += -DMOUSE_ENABLE
  6. endif
  7. ifeq ($(strip $(PS2_USE_BUSYWAIT)), yes)
  8. SRC += protocol/ps2_busywait.c
  9. SRC += protocol/ps2_io_avr.c
  10. OPT_DEFS += -DPS2_USE_BUSYWAIT
  11. endif
  12. ifeq ($(strip $(PS2_USE_INT)), yes)
  13. SRC += protocol/ps2_interrupt.c
  14. SRC += protocol/ps2_io_$(PLATFORM_KEY).c
  15. OPT_DEFS += -DPS2_USE_INT
  16. endif
  17. ifeq ($(strip $(PS2_USE_USART)), yes)
  18. SRC += protocol/ps2_usart.c
  19. SRC += protocol/ps2_io_$(PLATFORM_KEY).c
  20. OPT_DEFS += -DPS2_USE_USART
  21. endif
  22. ifeq ($(strip $(SERIAL_MOUSE_MICROSOFT_ENABLE)), yes)
  23. SRC += $(PROTOCOL_DIR)/serial_mouse_microsoft.c
  24. OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MICROSOFT \
  25. -DMOUSE_ENABLE
  26. endif
  27. ifeq ($(strip $(SERIAL_MOUSE_MOUSESYSTEMS_ENABLE)), yes)
  28. SRC += $(PROTOCOL_DIR)/serial_mouse_mousesystems.c
  29. OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MOUSESYSTEMS \
  30. -DMOUSE_ENABLE
  31. endif
  32. ifeq ($(strip $(SERIAL_MOUSE_USE_SOFT)), yes)
  33. SRC += $(PROTOCOL_DIR)/serial_soft.c
  34. endif
  35. ifeq ($(strip $(SERIAL_MOUSE_USE_UART)), yes)
  36. SRC += $(PROTOCOL_DIR)/serial_uart.c
  37. endif
  38. ifeq ($(strip $(ADB_MOUSE_ENABLE)), yes)
  39. OPT_DEFS += -DADB_MOUSE_ENABLE -DMOUSE_ENABLE
  40. endif
  41. ifeq ($(strip $(XT_ENABLE)), yes)
  42. SRC += $(PROTOCOL_DIR)/xt_interrupt.c
  43. OPT_DEFS += -DXT_ENABLE
  44. endif
  45. ifeq ($(strip $(USB_HID_ENABLE)), yes)
  46. include $(TMK_DIR)/protocol/usb_hid.mk
  47. endif
  48. # Search Path
  49. VPATH += $(TMK_DIR)/protocol