Jean-Christophe PLAGNIOL-VILLARD | 0c20dcd | 2007-11-24 19:46:45 +0100 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2000-2007 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Jean-Christophe PLAGNIOL-VILLARD | 0c20dcd | 2007-11-24 19:46:45 +0100 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 10 | LIB := $(obj)libinput.o |
Jean-Christophe PLAGNIOL-VILLARD | 0c20dcd | 2007-11-24 19:46:45 +0100 | [diff] [blame] | 11 | |
Jean-Christophe PLAGNIOL-VILLARD | 6f39ff3 | 2008-08-13 01:40:40 +0200 | [diff] [blame] | 12 | COBJS-$(CONFIG_I8042_KBD) += i8042.o |
Tom Warren | 22562a4 | 2012-09-04 17:00:24 -0700 | [diff] [blame] | 13 | COBJS-$(CONFIG_TEGRA_KEYBOARD) += tegra-kbc.o |
Hung-ying Tyan | 4a48bcf | 2013-05-15 18:27:32 +0800 | [diff] [blame] | 14 | COBJS-$(CONFIG_CROS_EC_KEYB) += cros_ec_keyb.o |
Jean-Christophe PLAGNIOL-VILLARD | 6f39ff3 | 2008-08-13 01:40:40 +0200 | [diff] [blame] | 15 | ifdef CONFIG_PS2KBD |
| 16 | COBJS-y += keyboard.o pc_keyb.o |
| 17 | COBJS-$(CONFIG_PS2MULT) += ps2mult.o ps2ser.o |
| 18 | endif |
Simon Glass | ec9fe92 | 2012-04-17 09:01:30 +0000 | [diff] [blame] | 19 | COBJS-y += input.o |
Bernie Thompson | 757342a | 2012-04-17 09:01:31 +0000 | [diff] [blame] | 20 | COBJS-$(CONFIG_OF_CONTROL) += key_matrix.o |
Jean-Christophe PLAGNIOL-VILLARD | 0c20dcd | 2007-11-24 19:46:45 +0100 | [diff] [blame] | 21 | |
| 22 | COBJS := $(COBJS-y) |
Wolfgang Denk | a1be476 | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 23 | SRCS := $(COBJS:.o=.c) |
| 24 | OBJS := $(addprefix $(obj),$(COBJS)) |
Jean-Christophe PLAGNIOL-VILLARD | 0c20dcd | 2007-11-24 19:46:45 +0100 | [diff] [blame] | 25 | |
| 26 | all: $(LIB) |
| 27 | |
| 28 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 29 | $(call cmd_link_o_target, $(OBJS)) |
Jean-Christophe PLAGNIOL-VILLARD | 0c20dcd | 2007-11-24 19:46:45 +0100 | [diff] [blame] | 30 | |
| 31 | ######################################################################### |
| 32 | |
| 33 | # defines $(obj).depend target |
| 34 | include $(SRCTREE)/rules.mk |
| 35 | |
| 36 | sinclude $(obj).depend |
| 37 | |
| 38 | ######################################################################### |