Vadim Bendebury | 5e12472 | 2011-10-17 08:36:14 +0000 | [diff] [blame] | 1 | # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
| 2 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 3 | # SPDX-License-Identifier: GPL-2.0+ |
Vadim Bendebury | 5e12472 | 2011-10-17 08:36:14 +0000 | [diff] [blame] | 4 | # |
| 5 | |
| 6 | include $(TOPDIR)/config.mk |
| 7 | |
| 8 | LIB := $(obj)libtpm.o |
| 9 | |
Rong Chang | f626799 | 2013-04-12 10:44:57 +0000 | [diff] [blame] | 10 | $(shell mkdir -p $(obj)slb9635_i2c) |
| 11 | |
Tom Wai-Hong Tam | 1b393db | 2013-04-12 11:04:37 +0000 | [diff] [blame] | 12 | # TODO: Merge tpm_tis_lpc.c with tpm.c |
Dirk Eibach | c01939c | 2013-06-26 15:55:15 +0200 | [diff] [blame] | 13 | COBJS-$(CONFIG_TPM_ATMEL_TWI) += tpm_atmel_twi.o |
Tom Wai-Hong Tam | 1b393db | 2013-04-12 11:04:37 +0000 | [diff] [blame] | 14 | COBJS-$(CONFIG_TPM_TIS_I2C) += tpm.o |
| 15 | COBJS-$(CONFIG_TPM_TIS_I2C) += tpm_tis_i2c.o |
| 16 | COBJS-$(CONFIG_TPM_TIS_LPC) += tpm_tis_lpc.o |
Vadim Bendebury | 5e12472 | 2011-10-17 08:36:14 +0000 | [diff] [blame] | 17 | |
| 18 | COBJS := $(COBJS-y) |
| 19 | SRCS := $(COBJS:.o=.c) |
| 20 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 21 | |
| 22 | all: $(LIB) |
| 23 | |
| 24 | $(LIB): $(obj).depend $(OBJS) |
| 25 | $(call cmd_link_o_target, $(OBJS)) |
| 26 | |
| 27 | ######################################################################### |
| 28 | |
| 29 | include $(SRCTREE)/rules.mk |
| 30 | |
| 31 | sinclude $(obj).depend |
| 32 | |
| 33 | ######################################################################### |