2015-04-10 01:32:04 +09:00
|
|
|
PROTOCOL_DIR = protocol
|
|
|
|
|
2019-12-13 03:36:37 -08:00
|
|
|
ifeq ($(strip $(PS2_MOUSE_ENABLE)), yes)
|
2015-04-10 01:32:04 +09:00
|
|
|
SRC += $(PROTOCOL_DIR)/ps2_mouse.c
|
|
|
|
OPT_DEFS += -DPS2_MOUSE_ENABLE
|
|
|
|
OPT_DEFS += -DMOUSE_ENABLE
|
|
|
|
endif
|
|
|
|
|
2019-12-13 03:36:37 -08:00
|
|
|
ifeq ($(strip $(PS2_USE_BUSYWAIT)), yes)
|
2015-04-10 01:32:04 +09:00
|
|
|
SRC += protocol/ps2_busywait.c
|
|
|
|
SRC += protocol/ps2_io_avr.c
|
|
|
|
OPT_DEFS += -DPS2_USE_BUSYWAIT
|
|
|
|
endif
|
|
|
|
|
2019-12-13 03:36:37 -08:00
|
|
|
ifeq ($(strip $(PS2_USE_INT)), yes)
|
2015-04-10 01:32:04 +09:00
|
|
|
SRC += protocol/ps2_interrupt.c
|
|
|
|
SRC += protocol/ps2_io_avr.c
|
|
|
|
OPT_DEFS += -DPS2_USE_INT
|
|
|
|
endif
|
|
|
|
|
2019-12-13 03:36:37 -08:00
|
|
|
ifeq ($(strip $(PS2_USE_USART)), yes)
|
2015-04-10 01:32:04 +09:00
|
|
|
SRC += protocol/ps2_usart.c
|
|
|
|
SRC += protocol/ps2_io_avr.c
|
|
|
|
OPT_DEFS += -DPS2_USE_USART
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2019-12-13 03:36:37 -08:00
|
|
|
ifeq ($(strip $(SERIAL_MOUSE_MICROSOFT_ENABLE)), yes)
|
2015-04-10 01:32:04 +09:00
|
|
|
SRC += $(PROTOCOL_DIR)/serial_mouse_microsoft.c
|
|
|
|
OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MICROSOFT \
|
|
|
|
-DMOUSE_ENABLE
|
|
|
|
endif
|
|
|
|
|
2019-12-13 03:36:37 -08:00
|
|
|
ifeq ($(strip $(SERIAL_MOUSE_MOUSESYSTEMS_ENABLE)), yes)
|
2015-04-10 01:32:04 +09:00
|
|
|
SRC += $(PROTOCOL_DIR)/serial_mouse_mousesystems.c
|
|
|
|
OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MOUSESYSTEMS \
|
|
|
|
-DMOUSE_ENABLE
|
|
|
|
endif
|
|
|
|
|
2019-12-13 03:36:37 -08:00
|
|
|
ifeq ($(strip $(SERIAL_MOUSE_USE_SOFT)), yes)
|
2015-04-10 01:32:04 +09:00
|
|
|
SRC += $(PROTOCOL_DIR)/serial_soft.c
|
|
|
|
endif
|
|
|
|
|
2019-12-13 03:36:37 -08:00
|
|
|
ifeq ($(strip $(SERIAL_MOUSE_USE_UART)), yes)
|
2015-04-10 01:32:04 +09:00
|
|
|
SRC += $(PROTOCOL_DIR)/serial_uart.c
|
|
|
|
endif
|
|
|
|
|
2019-12-13 03:36:37 -08:00
|
|
|
ifeq ($(strip $(ADB_MOUSE_ENABLE)), yes)
|
|
|
|
OPT_DEFS += -DADB_MOUSE_ENABLE -DMOUSE_ENABLE
|
2015-04-28 11:27:10 +09:00
|
|
|
endif
|
|
|
|
|
2019-12-13 03:36:37 -08:00
|
|
|
ifeq ($(strip $(XT_ENABLE)), yes)
|
|
|
|
SRC += $(PROTOCOL_DIR)/xt_interrupt.c
|
|
|
|
OPT_DEFS += -DXT_ENABLE
|
2018-10-22 21:37:03 +02:00
|
|
|
endif
|
|
|
|
|
2015-04-10 01:32:04 +09:00
|
|
|
# Search Path
|
|
|
|
VPATH += $(TMK_DIR)/protocol
|