xref: /openbmc/u-boot/drivers/input/Makefile (revision 3765b3e7)
1#
2# (C) Copyright 2000-2007
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# SPDX-License-Identifier:	GPL-2.0+
6#
7
8include $(TOPDIR)/config.mk
9
10LIB	:= $(obj)libinput.o
11
12COBJS-$(CONFIG_I8042_KBD) += i8042.o
13COBJS-$(CONFIG_TEGRA_KEYBOARD) += tegra-kbc.o
14COBJS-$(CONFIG_CROS_EC_KEYB) += cros_ec_keyb.o
15ifdef CONFIG_PS2KBD
16COBJS-y += keyboard.o pc_keyb.o
17COBJS-$(CONFIG_PS2MULT) += ps2mult.o ps2ser.o
18endif
19COBJS-y += input.o
20COBJS-$(CONFIG_OF_CONTROL) += key_matrix.o
21
22COBJS	:= $(COBJS-y)
23SRCS	:= $(COBJS:.o=.c)
24OBJS	:= $(addprefix $(obj),$(COBJS))
25
26all:	$(LIB)
27
28$(LIB):	$(obj).depend $(OBJS)
29	$(call cmd_link_o_target, $(OBJS))
30
31#########################################################################
32
33# defines $(obj).depend target
34include $(SRCTREE)/rules.mk
35
36sinclude $(obj).depend
37
38#########################################################################
39