1*9490a7f1SKumar Gala#
2*9490a7f1SKumar Gala# Copyright 2008 Freescale Semiconductor.
3*9490a7f1SKumar Gala# (C) Copyright 2001-2006
4*9490a7f1SKumar Gala# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5*9490a7f1SKumar Gala#
6*9490a7f1SKumar Gala# See file CREDITS for list of people who contributed to this
7*9490a7f1SKumar Gala# project.
8*9490a7f1SKumar Gala#
9*9490a7f1SKumar Gala# This program is free software; you can redistribute it and/or
10*9490a7f1SKumar Gala# modify it under the terms of the GNU General Public License as
11*9490a7f1SKumar Gala# published by the Free Software Foundation; either version 2 of
12*9490a7f1SKumar Gala# the License, or (at your option) any later version.
13*9490a7f1SKumar Gala#
14*9490a7f1SKumar Gala# This program is distributed in the hope that it will be useful,
15*9490a7f1SKumar Gala# but WITHOUT ANY WARRANTY; without even the implied warranty of
16*9490a7f1SKumar Gala# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17*9490a7f1SKumar Gala# GNU General Public License for more details.
18*9490a7f1SKumar Gala#
19*9490a7f1SKumar Gala# You should have received a copy of the GNU General Public License
20*9490a7f1SKumar Gala# along with this program; if not, write to the Free Software
21*9490a7f1SKumar Gala# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
22*9490a7f1SKumar Gala# MA 02111-1307 USA
23*9490a7f1SKumar Gala#
24*9490a7f1SKumar Gala
25*9490a7f1SKumar Galainclude $(TOPDIR)/config.mk
26*9490a7f1SKumar Gala
27*9490a7f1SKumar GalaLIB	= $(obj)lib$(BOARD).a
28*9490a7f1SKumar Gala
29*9490a7f1SKumar GalaCOBJS-y	+= $(BOARD).o
30*9490a7f1SKumar GalaCOBJS-y	+= ddr.o
31*9490a7f1SKumar GalaCOBJS-y	+= law.o
32*9490a7f1SKumar GalaCOBJS-y	+= tlb.o
33*9490a7f1SKumar Gala
34*9490a7f1SKumar GalaSRCS	:= $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
35*9490a7f1SKumar GalaOBJS	:= $(addprefix $(obj),$(COBJS-y))
36*9490a7f1SKumar GalaSOBJS	:= $(addprefix $(obj),$(SOBJS))
37*9490a7f1SKumar Gala
38*9490a7f1SKumar Gala$(LIB):	$(obj).depend $(OBJS) $(SOBJS)
39*9490a7f1SKumar Gala	$(AR) $(ARFLAGS) $@ $(OBJS)
40*9490a7f1SKumar Gala
41*9490a7f1SKumar Galaclean:
42*9490a7f1SKumar Gala	rm -f $(OBJS) $(SOBJS)
43*9490a7f1SKumar Gala
44*9490a7f1SKumar Galadistclean:	clean
45*9490a7f1SKumar Gala	rm -f $(LIB) core *.bak .depend
46*9490a7f1SKumar Gala
47*9490a7f1SKumar Gala#########################################################################
48*9490a7f1SKumar Gala
49*9490a7f1SKumar Gala# defines $(obj).depend target
50*9490a7f1SKumar Galainclude $(SRCTREE)/rules.mk
51*9490a7f1SKumar Gala
52*9490a7f1SKumar Galasinclude $(obj).depend
53*9490a7f1SKumar Gala
54*9490a7f1SKumar Gala#########################################################################
55