]> git.ipfire.org Git - people/ms/u-boot.git/blob - drivers/input/Makefile
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / drivers / input / Makefile
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
8 include $(TOPDIR)/config.mk
9
10 LIB := $(obj)libinput.o
11
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
15 ifdef CONFIG_PS2KBD
16 COBJS-y += keyboard.o pc_keyb.o
17 COBJS-$(CONFIG_PS2MULT) += ps2mult.o ps2ser.o
18 endif
19 COBJS-y += input.o
20 COBJS-$(CONFIG_OF_CONTROL) += key_matrix.o
21
22 COBJS := $(COBJS-y)
23 SRCS := $(COBJS:.o=.c)
24 OBJS := $(addprefix $(obj),$(COBJS))
25
26 all: $(LIB)
27
28 $(LIB): $(obj).depend $(OBJS)
29 $(call cmd_link_o_target, $(OBJS))
30
31 #########################################################################
32
33 # defines $(obj).depend target
34 include $(SRCTREE)/rules.mk
35
36 sinclude $(obj).depend
37
38 #########################################################################