blob: 788540342d1450cf41eb3f542d8aa66087edc5f7 [file] [log] [blame]
Jean-Christophe PLAGNIOL-VILLARD0c20dcd2007-11-24 19:46:45 +01001#
2# (C) Copyright 2000-2007
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Jean-Christophe PLAGNIOL-VILLARD0c20dcd2007-11-24 19:46:45 +01006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB := $(obj)libinput.o
Jean-Christophe PLAGNIOL-VILLARD0c20dcd2007-11-24 19:46:45 +010011
Jean-Christophe PLAGNIOL-VILLARD6f39ff32008-08-13 01:40:40 +020012COBJS-$(CONFIG_I8042_KBD) += i8042.o
Tom Warren22562a42012-09-04 17:00:24 -070013COBJS-$(CONFIG_TEGRA_KEYBOARD) += tegra-kbc.o
Hung-ying Tyan4a48bcf2013-05-15 18:27:32 +080014COBJS-$(CONFIG_CROS_EC_KEYB) += cros_ec_keyb.o
Jean-Christophe PLAGNIOL-VILLARD6f39ff32008-08-13 01:40:40 +020015ifdef CONFIG_PS2KBD
16COBJS-y += keyboard.o pc_keyb.o
17COBJS-$(CONFIG_PS2MULT) += ps2mult.o ps2ser.o
18endif
Simon Glassec9fe922012-04-17 09:01:30 +000019COBJS-y += input.o
Bernie Thompson757342a2012-04-17 09:01:31 +000020COBJS-$(CONFIG_OF_CONTROL) += key_matrix.o
Jean-Christophe PLAGNIOL-VILLARD0c20dcd2007-11-24 19:46:45 +010021
22COBJS := $(COBJS-y)
Wolfgang Denka1be4762008-05-20 16:00:29 +020023SRCS := $(COBJS:.o=.c)
24OBJS := $(addprefix $(obj),$(COBJS))
Jean-Christophe PLAGNIOL-VILLARD0c20dcd2007-11-24 19:46:45 +010025
26all: $(LIB)
27
28$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010029 $(call cmd_link_o_target, $(OBJS))
Jean-Christophe PLAGNIOL-VILLARD0c20dcd2007-11-24 19:46:45 +010030
31#########################################################################
32
33# defines $(obj).depend target
34include $(SRCTREE)/rules.mk
35
36sinclude $(obj).depend
37
38#########################################################################