xref: /openbmc/u-boot/drivers/dfu/Makefile (revision f22b11c10d16d71b7f96fd19cd0062724428bf88)
1*f22b11c1SLukasz Majewski#
2*f22b11c1SLukasz Majewski# Copyright (C) 2012 Samsung Electronics
3*f22b11c1SLukasz Majewski# Lukasz Majewski <l.majewski@samsung.com>
4*f22b11c1SLukasz Majewski#
5*f22b11c1SLukasz Majewski# See file CREDITS for list of people who contributed to this
6*f22b11c1SLukasz Majewski# project.
7*f22b11c1SLukasz Majewski#
8*f22b11c1SLukasz Majewski# This program is free software; you can redistribute it and/or
9*f22b11c1SLukasz Majewski# modify it under the terms of the GNU General Public License as
10*f22b11c1SLukasz Majewski# published by the Free Software Foundation; either version 2 of
11*f22b11c1SLukasz Majewski# the License, or (at your option) any later version.
12*f22b11c1SLukasz Majewski#
13*f22b11c1SLukasz Majewski# This program is distributed in the hope that it will be useful,
14*f22b11c1SLukasz Majewski# but WITHOUT ANY WARRANTY; without even the implied warranty of
15*f22b11c1SLukasz Majewski# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16*f22b11c1SLukasz Majewski# GNU General Public License for more details.
17*f22b11c1SLukasz Majewski#
18*f22b11c1SLukasz Majewski# You should have received a copy of the GNU General Public License
19*f22b11c1SLukasz Majewski# along with this program; if not, write to the Free Software
20*f22b11c1SLukasz Majewski# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21*f22b11c1SLukasz Majewski# MA 02111-1307 USA
22*f22b11c1SLukasz Majewski#
23*f22b11c1SLukasz Majewski
24*f22b11c1SLukasz Majewskiinclude $(TOPDIR)/config.mk
25*f22b11c1SLukasz Majewski
26*f22b11c1SLukasz MajewskiLIB	= $(obj)libdfu.o
27*f22b11c1SLukasz Majewski
28*f22b11c1SLukasz MajewskiCOBJS-$(CONFIG_DFU_FUNCTION) += dfu.o
29*f22b11c1SLukasz Majewski
30*f22b11c1SLukasz MajewskiSRCS    := $(COBJS-y:.o=.c)
31*f22b11c1SLukasz MajewskiOBJS	:= $(addprefix $(obj),$(COBJS-y))
32*f22b11c1SLukasz Majewski
33*f22b11c1SLukasz Majewski$(LIB):	$(obj).depend $(OBJS)
34*f22b11c1SLukasz Majewski	$(call cmd_link_o_target, $(OBJS))
35*f22b11c1SLukasz Majewski
36*f22b11c1SLukasz Majewski#########################################################################
37*f22b11c1SLukasz Majewski
38*f22b11c1SLukasz Majewski# defines $(obj).depend target
39*f22b11c1SLukasz Majewskiinclude $(SRCTREE)/rules.mk
40*f22b11c1SLukasz Majewski
41*f22b11c1SLukasz Majewskisinclude $(obj).depend
42*f22b11c1SLukasz Majewski
43*f22b11c1SLukasz Majewski#########################################################################
44