Skip to content

Commit 3aab802

Browse files
committed
core: Fix build config in protocol.mk
1 parent 5e43da0 commit 3aab802

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

protocol.mk

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,59 @@
11
PROTOCOL_DIR = protocol
22

33

4-
ifdef PS2_MOUSE_ENABLE
4+
ifeq (yes,$(strip $(PS2_MOUSE_ENABLE)))
55
SRC += $(PROTOCOL_DIR)/ps2_mouse.c
66
OPT_DEFS += -DPS2_MOUSE_ENABLE
77
OPT_DEFS += -DMOUSE_ENABLE
88
endif
99

10-
ifdef PS2_USE_BUSYWAIT
10+
ifeq (yes,$(strip $(PS2_USE_BUSYWAIT)))
1111
SRC += protocol/ps2_busywait.c
1212
SRC += protocol/ps2_io_avr.c
1313
OPT_DEFS += -DPS2_USE_BUSYWAIT
1414
endif
1515

16-
ifdef PS2_USE_INT
16+
ifeq (yes,$(strip $(PS2_USE_INT)))
1717
SRC += protocol/ps2_interrupt.c
1818
SRC += protocol/ps2_io_avr.c
1919
OPT_DEFS += -DPS2_USE_INT
2020
endif
2121

22-
ifdef PS2_USE_USART
22+
ifeq (yes,$(strip $(PS2_USE_USART)))
2323
SRC += protocol/ps2_usart.c
2424
SRC += protocol/ps2_io_avr.c
2525
OPT_DEFS += -DPS2_USE_USART
2626
endif
2727

2828

29-
ifdef XT_USE_INT
29+
ifeq (yes,$(strip $(XT_USE_INT)))
3030
SRC += protocol/xt_interrupt.c
3131
SRC += protocol/xt_io_avr.c
3232
OPT_DEFS += -DXT_USE_INT
3333
endif
3434

3535

36-
ifdef SERIAL_MOUSE_MICROSOFT_ENABLE
36+
ifeq (yes,$(strip $(SERIAL_MOUSE_MICROSOFT_ENABLE)))
3737
SRC += $(PROTOCOL_DIR)/serial_mouse_microsoft.c
3838
OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MICROSOFT \
3939
-DMOUSE_ENABLE
4040
endif
4141

42-
ifdef SERIAL_MOUSE_MOUSESYSTEMS_ENABLE
42+
ifeq (yes,$(strip $(SERIAL_MOUSE_MOUSESYSTEMS_ENABLE)))
4343
SRC += $(PROTOCOL_DIR)/serial_mouse_mousesystems.c
4444
OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MOUSESYSTEMS \
4545
-DMOUSE_ENABLE
4646
endif
4747

48-
ifdef SERIAL_MOUSE_USE_SOFT
48+
ifeq (yes,$(strip $(SERIAL_MOUSE_USE_SOFT)))
4949
SRC += $(PROTOCOL_DIR)/serial_soft.c
5050
endif
5151

52-
ifdef SERIAL_MOUSE_USE_UART
52+
ifeq (yes,$(strip $(SERIAL_MOUSE_USE_UART)))
5353
SRC += $(PROTOCOL_DIR)/serial_uart.c
5454
endif
5555

56-
ifdef ADB_MOUSE_ENABLE
56+
ifeq (yes,$(strip $(ADB_MOUSE_ENABLE)))
5757
OPT_DEFS += -DADB_MOUSE_ENABLE -DMOUSE_ENABLE
5858
endif
5959

0 commit comments

Comments
 (0)