Simon Glass | 4ea4b62 | 2012-11-05 12:16:24 +0000 | [diff] [blame] | 1 | # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
Gabe Black | 7f8574c | 2012-10-12 14:26:11 +0000 | [diff] [blame] | 2 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 3 | # SPDX-License-Identifier: GPL-2.0+ |
Gabe Black | 7f8574c | 2012-10-12 14:26:11 +0000 | [diff] [blame] | 4 | # |
| 5 | |
| 6 | include $(TOPDIR)/config.mk |
| 7 | |
| 8 | LIB = $(obj)libcbfs.o |
| 9 | |
| 10 | COBJS-$(CONFIG_CMD_CBFS) := cbfs.o |
| 11 | |
| 12 | SRCS := $(COBJS-y:.o=.c) |
| 13 | OBJS := $(addprefix $(obj),$(COBJS-y)) |
| 14 | |
| 15 | all: $(LIB) |
| 16 | |
| 17 | $(LIB): $(obj).depend $(OBJS) |
| 18 | $(call cmd_link_o_target, $(OBJS)) |
| 19 | |
| 20 | |
| 21 | ######################################################################### |
| 22 | |
| 23 | # defines $(obj).depend target |
| 24 | include $(SRCTREE)/rules.mk |
| 25 | |
| 26 | sinclude $(obj).depend |
| 27 | |
| 28 | ######################################################################### |