119580e66SDave Liu#
219580e66SDave Liu# (C) Copyright 2006
319580e66SDave Liu# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
419580e66SDave Liu#
519580e66SDave Liu# See file CREDITS for list of people who contributed to this
619580e66SDave Liu# project.
719580e66SDave Liu#
819580e66SDave Liu# This program is free software; you can redistribute it and/or
919580e66SDave Liu# modify it under the terms of the GNU General Public License as
1019580e66SDave Liu# published by the Free Software Foundation; either version 2 of
1119580e66SDave Liu# the License, or (at your option) any later version.
1219580e66SDave Liu#
1319580e66SDave Liu# This program is distributed in the hope that it will be useful,
1419580e66SDave Liu# but WITHOUT ANY WARRANTY; without even the implied warranty of
1519580e66SDave Liu# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1619580e66SDave Liu# GNU General Public License for more details.
1719580e66SDave Liu#
1819580e66SDave Liu# You should have received a copy of the GNU General Public License
1919580e66SDave Liu# along with this program; if not, write to the Free Software
2019580e66SDave Liu# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
2119580e66SDave Liu# MA 02111-1307 USA
2219580e66SDave Liu#
2319580e66SDave Liu
2419580e66SDave Liuinclude $(TOPDIR)/config.mk
2519580e66SDave Liu
26*6d8962e8SSebastien CarlierLIB	= $(obj)lib$(BOARD).o
2719580e66SDave Liu
289993e196SKim PhillipsCOBJS-y += $(BOARD).o
299993e196SKim PhillipsCOBJS-$(CONFIG_PCI) += pci.o
3019580e66SDave Liu
319993e196SKim PhillipsCOBJS	:= $(COBJS-y)
3219580e66SDave LiuSRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
3319580e66SDave LiuOBJS	:= $(addprefix $(obj),$(COBJS))
3419580e66SDave LiuSOBJS	:= $(addprefix $(obj),$(SOBJS))
3519580e66SDave Liu
3619580e66SDave Liu$(LIB):	$(obj).depend $(OBJS)
37*6d8962e8SSebastien Carlier	$(call cmd_link_o_target, $(OBJS))
3819580e66SDave Liu
3919580e66SDave Liuclean:
4019580e66SDave Liu	rm -f $(SOBJS) $(OBJS)
4119580e66SDave Liu
4219580e66SDave Liudistclean:	clean
43c8a3b109SWolfgang Denk	rm -f $(LIB) core *.bak $(obj).depend
4419580e66SDave Liu
4519580e66SDave Liu#########################################################################
4619580e66SDave Liu
4719580e66SDave Liu# defines $(obj).depend target
4819580e66SDave Liuinclude $(SRCTREE)/rules.mk
4919580e66SDave Liu
5019580e66SDave Liusinclude $(obj).depend
5119580e66SDave Liu
5219580e66SDave Liu#########################################################################
53