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