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