1 PROTOCOL_DIR = protocol
5 SRC += $(PROTOCOL_DIR)/ps2_mouse.c
6 OPT_DEFS += -DPS2_MOUSE_ENABLE
7 OPT_DEFS += -DMOUSE_ENABLE
10 ifdef PS2_USE_BUSYWAIT
11 SRC += protocol/ps2_busywait.c
12 SRC += protocol/ps2_io_avr.c
13 OPT_DEFS += -DPS2_USE_BUSYWAIT
17 SRC += protocol/ps2_interrupt.c
18 OPT_DEFS += -DPS2_USE_INT
22 SRC += protocol/ps2_usart.c
23 OPT_DEFS += -DPS2_USE_USART
27 ifdef SERIAL_MOUSE_MICROSOFT_ENABLE
28 SRC += $(PROTOCOL_DIR)/serial_mouse_microsoft.c
29 OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MICROSOFT \
33 ifdef SERIAL_MOUSE_MOUSESYSTEMS_ENABLE
34 SRC += $(PROTOCOL_DIR)/serial_mouse_mousesystems.c
35 OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MOUSESYSTEMS \
39 ifdef SERIAL_MOUSE_USE_SOFT
40 SRC += $(PROTOCOL_DIR)/serial_soft.c
43 ifdef SERIAL_MOUSE_USE_UART
44 SRC += $(PROTOCOL_DIR)/serial_uart.c
48 VPATH += $(TOP_DIR)/protocol