summaryrefslogtreecommitdiffstats
path: root/Makefile.common
blob: 1922def00167ca605f12cb4af26ce5620e634ed4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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