xref: /openbmc/u-boot/board/Marvell/guruplug/Makefile (revision 16b76705)
1*16b76705SSiddarth Gore#
2*16b76705SSiddarth Gore# (C) Copyright 2009
3*16b76705SSiddarth Gore# Marvell Semiconductor <www.marvell.com>
4*16b76705SSiddarth Gore# Written-by: Siddarth Gore <gores@marvell.com>
5*16b76705SSiddarth Gore#
6*16b76705SSiddarth Gore# See file CREDITS for list of people who contributed to this
7*16b76705SSiddarth Gore# project.
8*16b76705SSiddarth Gore#
9*16b76705SSiddarth Gore# This program is free software; you can redistribute it and/or
10*16b76705SSiddarth Gore# modify it under the terms of the GNU General Public License as
11*16b76705SSiddarth Gore# published by the Free Software Foundation; either version 2 of
12*16b76705SSiddarth Gore# the License, or (at your option) any later version.
13*16b76705SSiddarth Gore#
14*16b76705SSiddarth Gore# This program is distributed in the hope that it will be useful,
15*16b76705SSiddarth Gore# but WITHOUT ANY WARRANTY; without even the implied warranty of
16*16b76705SSiddarth Gore# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
17*16b76705SSiddarth Gore# GNU General Public License for more details.
18*16b76705SSiddarth Gore#
19*16b76705SSiddarth Gore# You should have received a copy of the GNU General Public License
20*16b76705SSiddarth Gore# along with this program; if not, write to the Free Software
21*16b76705SSiddarth Gore# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22*16b76705SSiddarth Gore# MA 02110-1301 USA
23*16b76705SSiddarth Gore#
24*16b76705SSiddarth Gore
25*16b76705SSiddarth Goreinclude $(TOPDIR)/config.mk
26*16b76705SSiddarth Gore
27*16b76705SSiddarth GoreLIB	= $(obj)lib$(BOARD).a
28*16b76705SSiddarth Gore
29*16b76705SSiddarth GoreCOBJS	:= guruplug.o
30*16b76705SSiddarth Gore
31*16b76705SSiddarth GoreSRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
32*16b76705SSiddarth GoreOBJS	:= $(addprefix $(obj),$(COBJS))
33*16b76705SSiddarth GoreSOBJS	:= $(addprefix $(obj),$(SOBJS))
34*16b76705SSiddarth Gore
35*16b76705SSiddarth Gore$(LIB):	$(obj).depend $(OBJS) $(SOBJS)
36*16b76705SSiddarth Gore	$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
37*16b76705SSiddarth Gore
38*16b76705SSiddarth Goreclean:
39*16b76705SSiddarth Gore	rm -f $(SOBJS) $(OBJS)
40*16b76705SSiddarth Gore
41*16b76705SSiddarth Goredistclean:	clean
42*16b76705SSiddarth Gore	rm -f $(LIB) core *.bak .depend
43*16b76705SSiddarth Gore
44*16b76705SSiddarth Gore#########################################################################
45*16b76705SSiddarth Gore
46*16b76705SSiddarth Gore# defines $(obj).depend target
47*16b76705SSiddarth Goreinclude $(SRCTREE)/rules.mk
48*16b76705SSiddarth Gore
49*16b76705SSiddarth Goresinclude $(obj).depend
50*16b76705SSiddarth Gore
51*16b76705SSiddarth Gore#########################################################################
52