blob: e0e6de69faf1823fab4272cb3954bff8639641d9 [file] [log] [blame]
Simon Glass25920752012-11-05 12:16:24 +00001# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
Gabe Black84cd9322012-10-12 14:26:11 +00002#
3# This program is free software; you can redistribute it and/or
4# modify it under the terms of the GNU General Public License as
5# published by the Free Software Foundation; either version 2 of
6# the License, or (at your option) any later version.
7#
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU General Public License for more details.
12#
13# You should have received a copy of the GNU General Public License
14# along with this program; if not, write to the Free Software
15# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
16# MA 02111-1307 USA
17#
18
19include $(TOPDIR)/config.mk
20
21LIB = $(obj)libcbfs.o
22
23COBJS-$(CONFIG_CMD_CBFS) := cbfs.o
24
25SRCS := $(COBJS-y:.o=.c)
26OBJS := $(addprefix $(obj),$(COBJS-y))
27
28all: $(LIB)
29
30$(LIB): $(obj).depend $(OBJS)
31 $(call cmd_link_o_target, $(OBJS))
32
33
34#########################################################################
35
36# defines $(obj).depend target
37include $(SRCTREE)/rules.mk
38
39sinclude $(obj).depend
40
41#########################################################################