summaryrefslogtreecommitdiff
path: root/protocol.mk
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-11-02 03:10:49 +0900
committertmk <nobody@nowhere>2013-11-02 04:30:08 +0900
commit676d94d13791a99751cebf724fd5a56b150f344d (patch)
tree5e931d0fbbf3c51272ba80703cd6c58e76c95993 /protocol.mk
parent1591764cfbc39e73c6f32e9b805d596379866ff0 (diff)
Fix PS/2 mouse support
Diffstat (limited to 'protocol.mk')
-rw-r--r--protocol.mk25
1 files changed, 25 insertions, 0 deletions
diff --git a/protocol.mk b/protocol.mk
index 1442c5206b..0d5f06c7ec 100644
--- a/protocol.mk
+++ b/protocol.mk
@@ -1,2 +1,27 @@
+PROTOCOL_DIR = protocol
+
+
+ifdef PS2_MOUSE_ENABLE
+ SRC += $(PROTOCOL_DIR)/ps2_mouse.c
+ OPT_DEFS += -DPS2_MOUSE_ENABLE
+ OPT_DEFS += -DMOUSE_ENABLE
+endif
+
+ifdef PS2_USE_BUSYWAIT
+ SRC += protocol/ps2.c
+ OPT_DEFS += -DPS2_USE_BUSYWAIT
+endif
+
+ifdef PS2_USE_INT
+ SRC += protocol/ps2.c
+ OPT_DEFS += -DPS2_USE_INT
+endif
+
+ifdef PS2_USE_USART
+ SRC += protocol/ps2_usart.c
+ OPT_DEFS += -DPS2_USE_USART
+endif
+
+
# Search Path
VPATH += $(TOP_DIR)/protocol