summaryrefslogtreecommitdiff
path: root/Makefile.common
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2011-02-13 00:15:51 +0900
committertmk <nobody@nowhere>2011-02-22 03:09:05 +0900
commit9a938eecbd2b70c970992583b5c16da717d8e254 (patch)
tree22ac37491f88aa60d917a18696c93f61a429d43c /Makefile.common
parent2b8cd88ab142068eed0a3f230a3de79deb567536 (diff)
host interface for pjrc
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common19
1 files changed, 18 insertions, 1 deletions
diff --git a/Makefile.common b/Makefile.common
index ae2a562ce0..1922def001 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -1,18 +1,35 @@
-SRC += keyboard.c \
+SRC += host.c \
+ keyboard.c \
command.c \
layer.c \
timer.c \
print.c \
util.c
+
# Option modules
ifdef MOUSEKEY_ENABLE
SRC += mousekey.c
+ OPT_DEFS += -DMOUSEKEY_ENABLE
endif
ifdef PS2_MOUSE_ENABLE
SRC += ps2.c \
ps2_mouse.c
+ OPT_DEFS += -DPS2_MOUSE_ENABLE
+endif
+
+ifdef USB_EXTRA_ENABLE
+ OPT_DEFS += -DUSB_EXTRA_ENABLE
+endif
+
+ifdef USB_NKRO_ENABLE
+ OPT_DEFS += -DUSB_NKRO_ENABLE
+endif
+
+ifdef $(or MOUSEKEY_ENABLE, PS2_MOUSE_ENABLE)
+ OPT_DEFS += -DUSB_MOUSE_ENABLE
endif
+
include $(COMMON_DIR)/Makefile.rules