aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/protocol.mk
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2019-12-13 03:36:37 -0800
committerJoel Challis <git@zvecr.com>2019-12-13 11:36:37 +0000
commit2d1c985ff44ecfe54fe82021e0326b3c7b07db9f (patch)
tree28c3ec099a67b5139b11e6d8333bf144669d957d /tmk_core/protocol.mk
parente4818cf7323bb8f437db625903ebe471deaab335 (diff)
downloadqmk_firmware-2d1c985ff44ecfe54fe82021e0326b3c7b07db9f.tar.gz
qmk_firmware-2d1c985ff44ecfe54fe82021e0326b3c7b07db9f.zip
core: Fix build config in protocol.mk (#7620)
Backports commits from tmk_keyboard
Diffstat (limited to 'tmk_core/protocol.mk')
-rw-r--r--tmk_core/protocol.mk27
1 files changed, 13 insertions, 14 deletions
diff --git a/tmk_core/protocol.mk b/tmk_core/protocol.mk
index 78b9deb29..0c41642b9 100644
--- a/tmk_core/protocol.mk
+++ b/tmk_core/protocol.mk
@@ -1,58 +1,57 @@
1PROTOCOL_DIR = protocol 1PROTOCOL_DIR = protocol
2 2
3 3ifeq ($(strip $(PS2_MOUSE_ENABLE)), yes)
4ifdef PS2_MOUSE_ENABLE
5 SRC += $(PROTOCOL_DIR)/ps2_mouse.c 4 SRC += $(PROTOCOL_DIR)/ps2_mouse.c
6 OPT_DEFS += -DPS2_MOUSE_ENABLE 5 OPT_DEFS += -DPS2_MOUSE_ENABLE
7 OPT_DEFS += -DMOUSE_ENABLE 6 OPT_DEFS += -DMOUSE_ENABLE
8endif 7endif
9 8
10ifdef PS2_USE_BUSYWAIT 9ifeq ($(strip $(PS2_USE_BUSYWAIT)), yes)
11 SRC += protocol/ps2_busywait.c 10 SRC += protocol/ps2_busywait.c
12 SRC += protocol/ps2_io_avr.c 11 SRC += protocol/ps2_io_avr.c
13 OPT_DEFS += -DPS2_USE_BUSYWAIT 12 OPT_DEFS += -DPS2_USE_BUSYWAIT
14endif 13endif
15 14
16ifdef PS2_USE_INT 15ifeq ($(strip $(PS2_USE_INT)), yes)
17 SRC += protocol/ps2_interrupt.c 16 SRC += protocol/ps2_interrupt.c
18 SRC += protocol/ps2_io_avr.c 17 SRC += protocol/ps2_io_avr.c
19 OPT_DEFS += -DPS2_USE_INT 18 OPT_DEFS += -DPS2_USE_INT
20endif 19endif
21 20
22ifdef PS2_USE_USART 21ifeq ($(strip $(PS2_USE_USART)), yes)
23 SRC += protocol/ps2_usart.c 22 SRC += protocol/ps2_usart.c
24 SRC += protocol/ps2_io_avr.c 23 SRC += protocol/ps2_io_avr.c
25 OPT_DEFS += -DPS2_USE_USART 24 OPT_DEFS += -DPS2_USE_USART
26endif 25endif
27 26
28 27
29ifdef SERIAL_MOUSE_MICROSOFT_ENABLE 28ifeq ($(strip $(SERIAL_MOUSE_MICROSOFT_ENABLE)), yes)
30 SRC += $(PROTOCOL_DIR)/serial_mouse_microsoft.c 29 SRC += $(PROTOCOL_DIR)/serial_mouse_microsoft.c
31 OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MICROSOFT \ 30 OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MICROSOFT \
32 -DMOUSE_ENABLE 31 -DMOUSE_ENABLE
33endif 32endif
34 33
35ifdef SERIAL_MOUSE_MOUSESYSTEMS_ENABLE 34ifeq ($(strip $(SERIAL_MOUSE_MOUSESYSTEMS_ENABLE)), yes)
36 SRC += $(PROTOCOL_DIR)/serial_mouse_mousesystems.c 35 SRC += $(PROTOCOL_DIR)/serial_mouse_mousesystems.c
37 OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MOUSESYSTEMS \ 36 OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MOUSESYSTEMS \
38 -DMOUSE_ENABLE 37 -DMOUSE_ENABLE
39endif 38endif
40 39
41ifdef SERIAL_MOUSE_USE_SOFT 40ifeq ($(strip $(SERIAL_MOUSE_USE_SOFT)), yes)
42 SRC += $(PROTOCOL_DIR)/serial_soft.c 41 SRC += $(PROTOCOL_DIR)/serial_soft.c
43endif 42endif
44 43
45ifdef SERIAL_MOUSE_USE_UART 44ifeq ($(strip $(SERIAL_MOUSE_USE_UART)), yes)
46 SRC += $(PROTOCOL_DIR)/serial_uart.c 45 SRC += $(PROTOCOL_DIR)/serial_uart.c
47endif 46endif
48 47
49ifdef ADB_MOUSE_ENABLE 48ifeq ($(strip $(ADB_MOUSE_ENABLE)), yes)
50 OPT_DEFS += -DADB_MOUSE_ENABLE -DMOUSE_ENABLE 49 OPT_DEFS += -DADB_MOUSE_ENABLE -DMOUSE_ENABLE
51endif 50endif
52 51
53ifdef XT_ENABLE 52ifeq ($(strip $(XT_ENABLE)), yes)
54 SRC += $(PROTOCOL_DIR)/xt_interrupt.c 53 SRC += $(PROTOCOL_DIR)/xt_interrupt.c
55 OPT_DEFS += -DXT_ENABLE 54 OPT_DEFS += -DXT_ENABLE
56endif 55endif
57 56
58# Search Path 57# Search Path