]> git.gir.st - tmk_keyboard.git/blob - protocol.mk
Merge branch 'serial-mouse' of git://github.com/rhaberkorn/tmk_keyboard into rhaberko...
[tmk_keyboard.git] / protocol.mk
1 PROTOCOL_DIR = protocol
2
3
4 ifdef PS2_MOUSE_ENABLE
5 SRC += $(PROTOCOL_DIR)/ps2_mouse.c
6 OPT_DEFS += -DPS2_MOUSE_ENABLE
7 OPT_DEFS += -DMOUSE_ENABLE
8 endif
9
10 ifdef PS2_USE_BUSYWAIT
11 SRC += protocol/ps2_busywait.c
12 OPT_DEFS += -DPS2_USE_BUSYWAIT
13 endif
14
15 ifdef PS2_USE_INT
16 SRC += protocol/ps2_interrupt.c
17 OPT_DEFS += -DPS2_USE_INT
18 endif
19
20 ifdef PS2_USE_USART
21 SRC += protocol/ps2_usart.c
22 OPT_DEFS += -DPS2_USE_USART
23 endif
24
25
26 ifdef SERIAL_MOUSE_MICROSOFT_ENABLE
27 SRC += $(PROTOCOL_DIR)/serial_mouse_microsoft.c
28 OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MICROSOFT \
29 -DMOUSE_ENABLE
30 endif
31
32 ifdef SERIAL_MOUSE_MOUSESYSTEMS_ENABLE
33 SRC += $(PROTOCOL_DIR)/serial_mouse_mousesystems.c
34 OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MOUSESYSTEMS \
35 -DMOUSE_ENABLE
36 endif
37
38 ifdef SERIAL_MOUSE_USE_SOFT
39 SRC += $(PROTOCOL_DIR)/serial_soft.c
40 endif
41
42 ifdef SERIAL_MOUSE_USE_UART
43 SRC += $(PROTOCOL_DIR)/serial_uart.c
44 endif
45
46 # Search Path
47 VPATH += $(TOP_DIR)/protocol
Imprint / Impressum