]> git.gir.st - tmk_keyboard.git/blob - tmk_core/protocol.mk
Merge branch 'unimap'
[tmk_keyboard.git] / tmk_core / 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 SRC += protocol/ps2_io_avr.c
13 OPT_DEFS += -DPS2_USE_BUSYWAIT
14 endif
15
16 ifdef PS2_USE_INT
17 SRC += protocol/ps2_interrupt.c
18 SRC += protocol/ps2_io_avr.c
19 OPT_DEFS += -DPS2_USE_INT
20 endif
21
22 ifdef PS2_USE_USART
23 SRC += protocol/ps2_usart.c
24 SRC += protocol/ps2_io_avr.c
25 OPT_DEFS += -DPS2_USE_USART
26 endif
27
28
29 ifdef XT_USE_INT
30 SRC += protocol/xt_interrupt.c
31 SRC += protocol/xt_io_avr.c
32 OPT_DEFS += -DXT_USE_INT
33 endif
34
35
36 ifdef SERIAL_MOUSE_MICROSOFT_ENABLE
37 SRC += $(PROTOCOL_DIR)/serial_mouse_microsoft.c
38 OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MICROSOFT \
39 -DMOUSE_ENABLE
40 endif
41
42 ifdef SERIAL_MOUSE_MOUSESYSTEMS_ENABLE
43 SRC += $(PROTOCOL_DIR)/serial_mouse_mousesystems.c
44 OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MOUSESYSTEMS \
45 -DMOUSE_ENABLE
46 endif
47
48 ifdef SERIAL_MOUSE_USE_SOFT
49 SRC += $(PROTOCOL_DIR)/serial_soft.c
50 endif
51
52 ifdef SERIAL_MOUSE_USE_UART
53 SRC += $(PROTOCOL_DIR)/serial_uart.c
54 endif
55
56 ifdef ADB_MOUSE_ENABLE
57 OPT_DEFS += -DADB_MOUSE_ENABLE -DMOUSE_ENABLE
58 endif
59
60 # Search Path
61 VPATH += $(TMK_DIR)/protocol
Imprint / Impressum