xref: /openbmc/u-boot/board/spear/spear320/Makefile (revision 7da69236)
1*7da69236SVipin KUMAR#
2*7da69236SVipin KUMAR# (C) Copyright 2000-2004
3*7da69236SVipin KUMAR# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4*7da69236SVipin KUMAR#
5*7da69236SVipin KUMAR# See file CREDITS for list of people who contributed to this
6*7da69236SVipin KUMAR# project.
7*7da69236SVipin KUMAR#
8*7da69236SVipin KUMAR# This program is free software; you can redistribute it and/or
9*7da69236SVipin KUMAR# modify it under the terms of the GNU General Public License as
10*7da69236SVipin KUMAR# published by the Free Software Foundation; either version 2 of
11*7da69236SVipin KUMAR# the License, or (at your option) any later version.
12*7da69236SVipin KUMAR#
13*7da69236SVipin KUMAR# This program is distributed in the hope that it will be useful,
14*7da69236SVipin KUMAR# but WITHOUT ANY WARRANTY; without even the implied warranty of
15*7da69236SVipin KUMAR# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16*7da69236SVipin KUMAR# GNU General Public License for more details.
17*7da69236SVipin KUMAR#
18*7da69236SVipin KUMAR# You should have received a copy of the GNU General Public License
19*7da69236SVipin KUMAR# along with this program; if not, write to the Free Software
20*7da69236SVipin KUMAR# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21*7da69236SVipin KUMAR# MA 02111-1307 USA
22*7da69236SVipin KUMAR#
23*7da69236SVipin KUMAR
24*7da69236SVipin KUMARinclude $(TOPDIR)/config.mk
25*7da69236SVipin KUMAR
26*7da69236SVipin KUMARLIB	= $(obj)lib$(BOARD).a
27*7da69236SVipin KUMAR
28*7da69236SVipin KUMARCOBJS	:= spear320.o
29*7da69236SVipin KUMARSOBJS	:=
30*7da69236SVipin KUMAR
31*7da69236SVipin KUMARSRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
32*7da69236SVipin KUMAROBJS	:= $(addprefix $(obj),$(COBJS))
33*7da69236SVipin KUMARSOBJS	:= $(addprefix $(obj),$(SOBJS))
34*7da69236SVipin KUMAR
35*7da69236SVipin KUMAR$(LIB):	$(obj).depend $(OBJS) $(SOBJS)
36*7da69236SVipin KUMAR	$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
37*7da69236SVipin KUMAR
38*7da69236SVipin KUMARclean:
39*7da69236SVipin KUMAR	rm -f $(SOBJS) $(OBJS)
40*7da69236SVipin KUMAR
41*7da69236SVipin KUMARdistclean:	clean
42*7da69236SVipin KUMAR	rm -f $(LIB) core *.bak $(obj).depend
43*7da69236SVipin KUMAR
44*7da69236SVipin KUMAR#########################################################################
45*7da69236SVipin KUMAR
46*7da69236SVipin KUMAR# defines $(obj).depend target
47*7da69236SVipin KUMARinclude $(SRCTREE)/rules.mk
48*7da69236SVipin KUMAR
49*7da69236SVipin KUMARsinclude $(obj).depend
50*7da69236SVipin KUMAR
51*7da69236SVipin KUMAR#########################################################################
52