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 OPT_DEFS += -DPS2_USE_BUSYWAIT
16 SRC += protocol/ps2_interrupt.c
17 OPT_DEFS += -DPS2_USE_INT
21 SRC += protocol/ps2_usart.c
22 OPT_DEFS += -DPS2_USE_USART
26 ifdef SERIAL_MOUSE_MICROSOFT_ENABLE
27 SRC += $(PROTOCOL_DIR)/serial_mouse_microsoft.c
28 OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MICROSOFT \
32 ifdef SERIAL_MOUSE_MOUSESYSTEMS_ENABLE
33 SRC += $(PROTOCOL_DIR)/serial_mouse_mousesystems.c
34 OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MOUSESYSTEMS \
38 ifdef SERIAL_MOUSE_USE_SOFT
39 SRC += $(PROTOCOL_DIR)/serial_soft.c
42 ifdef SERIAL_MOUSE_USE_UART
43 SRC += $(PROTOCOL_DIR)/serial_uart.c
47 VPATH += $(TOP_DIR)/protocol