2 # (C) Copyright 2000-2007
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # SPDX-License-Identifier: GPL-2.0+
8 include $(TOPDIR)/config.mk
10 LIB := $(obj)libinput.o
12 COBJS-$(CONFIG_I8042_KBD) += i8042.o
13 COBJS-$(CONFIG_TEGRA_KEYBOARD) += tegra-kbc.o
14 COBJS-$(CONFIG_CROS_EC_KEYB) += cros_ec_keyb.o
16 COBJS-y += keyboard.o pc_keyb.o
17 COBJS-$(CONFIG_PS2MULT) += ps2mult.o ps2ser.o
20 COBJS-$(CONFIG_OF_CONTROL) += key_matrix.o
23 SRCS := $(COBJS:.o=.c)
24 OBJS := $(addprefix $(obj),$(COBJS))
28 $(LIB): $(obj).depend $(OBJS)
29 $(call cmd_link_o_target, $(OBJS))
31 #########################################################################
33 # defines $(obj).depend target
34 include $(SRCTREE)/rules.mk
36 sinclude $(obj).depend
38 #########################################################################