xref: /openbmc/u-boot/fs/cbfs/Makefile (revision 9d86f0c3)
1# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
2#
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#########################################################################
42