aboutsummaryrefslogtreecommitdiff
path: root/Makefile.common
diff options
context:
space:
mode:
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 ae2a562ce..1922def00 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -1,18 +1,35 @@
1SRC += keyboard.c \ 1SRC += host.c \
2 keyboard.c \
2 command.c \ 3 command.c \
3 layer.c \ 4 layer.c \
4 timer.c \ 5 timer.c \
5 print.c \ 6 print.c \
6 util.c 7 util.c
7 8
9
8# Option modules 10# Option modules
9ifdef MOUSEKEY_ENABLE 11ifdef MOUSEKEY_ENABLE
10 SRC += mousekey.c 12 SRC += mousekey.c
13 OPT_DEFS += -DMOUSEKEY_ENABLE
11endif 14endif
12 15
13ifdef PS2_MOUSE_ENABLE 16ifdef PS2_MOUSE_ENABLE
14 SRC += ps2.c \ 17 SRC += ps2.c \
15 ps2_mouse.c 18 ps2_mouse.c
19 OPT_DEFS += -DPS2_MOUSE_ENABLE
20endif
21
22ifdef USB_EXTRA_ENABLE
23 OPT_DEFS += -DUSB_EXTRA_ENABLE
24endif
25
26ifdef USB_NKRO_ENABLE
27 OPT_DEFS += -DUSB_NKRO_ENABLE
28endif
29
30ifdef $(or MOUSEKEY_ENABLE, PS2_MOUSE_ENABLE)
31 OPT_DEFS += -DUSB_MOUSE_ENABLE
16endif 32endif
17 33
34
18include $(COMMON_DIR)/Makefile.rules 35include $(COMMON_DIR)/Makefile.rules