1 PROTOCOL_DIR = protocol
4 ifeq (yes,$(strip $(PS2_MOUSE_ENABLE)))
5 SRC += $(PROTOCOL_DIR)/ps2_mouse.c
6 OPT_DEFS += -DPS2_MOUSE_ENABLE
7 OPT_DEFS += -DMOUSE_ENABLE
10 ifeq (yes,$(strip $(PS2_USE_BUSYWAIT)))
11 SRC += protocol/ps2_busywait.c
12 SRC += protocol/ps2_io_avr.c
13 OPT_DEFS += -DPS2_USE_BUSYWAIT
16 ifeq (yes,$(strip $(PS2_USE_INT)))
17 SRC += protocol/ps2_interrupt.c
18 SRC += protocol/ps2_io_avr.c
19 OPT_DEFS += -DPS2_USE_INT
22 ifeq (yes,$(strip $(PS2_USE_USART)))
23 SRC += protocol/ps2_usart.c
24 SRC += protocol/ps2_io_avr.c
25 OPT_DEFS += -DPS2_USE_USART
29 ifeq (yes,$(strip $(SERIAL_MOUSE_MICROSOFT_ENABLE)))
30 SRC += $(PROTOCOL_DIR)/serial_mouse_microsoft.c
31 OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MICROSOFT \
35 ifeq (yes,$(strip $(SERIAL_MOUSE_MOUSESYSTEMS_ENABLE)))
36 SRC += $(PROTOCOL_DIR)/serial_mouse_mousesystems.c
37 OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MOUSESYSTEMS \
41 ifeq (yes,$(strip $(SERIAL_MOUSE_USE_SOFT)))
42 SRC += $(PROTOCOL_DIR)/serial_soft.c
45 ifeq (yes,$(strip $(SERIAL_MOUSE_USE_UART)))
46 SRC += $(PROTOCOL_DIR)/serial_uart.c
49 ifeq (yes,$(strip $(ADB_MOUSE_ENABLE)))
50 OPT_DEFS += -DADB_MOUSE_ENABLE -DMOUSE_ENABLE
54 VPATH += $(TMK_DIR)/protocol