1e58fe957SKim Phillips#
2e58fe957SKim Phillips# (C) Copyright 2006
3e58fe957SKim Phillips# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4e58fe957SKim Phillips#
5e58fe957SKim Phillips# See file CREDITS for list of people who contributed to this
6e58fe957SKim Phillips# project.
7e58fe957SKim Phillips#
8e58fe957SKim Phillips# This program is free software; you can redistribute it and/or
9e58fe957SKim Phillips# modify it under the terms of the GNU General Public License as
10e58fe957SKim Phillips# published by the Free Software Foundation; either version 2 of
11e58fe957SKim Phillips# the License, or (at your option) any later version.
12e58fe957SKim Phillips#
13e58fe957SKim Phillips# This program is distributed in the hope that it will be useful,
14e58fe957SKim Phillips# but WITHOUT ANY WARRANTY; without even the implied warranty of
15e58fe957SKim Phillips# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16e58fe957SKim Phillips# GNU General Public License for more details.
17e58fe957SKim Phillips#
18e58fe957SKim Phillips# You should have received a copy of the GNU General Public License
19e58fe957SKim Phillips# along with this program; if not, write to the Free Software
20e58fe957SKim Phillips# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21e58fe957SKim Phillips# MA 02111-1307 USA
22e58fe957SKim Phillips#
23e58fe957SKim Phillips
24e58fe957SKim Phillipsinclude $(TOPDIR)/config.mk
25e58fe957SKim Phillips
26*6d8962e8SSebastien CarlierLIB	= $(obj)lib$(BOARD).o
27e58fe957SKim Phillips
289993e196SKim PhillipsCOBJS-y += $(BOARD).o
299993e196SKim PhillipsCOBJS-$(CONFIG_PCI) += pci.o
30e58fe957SKim Phillips
319993e196SKim PhillipsCOBJS	:= $(COBJS-y)
32e58fe957SKim PhillipsSRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
33e58fe957SKim PhillipsOBJS	:= $(addprefix $(obj),$(COBJS))
34e58fe957SKim PhillipsSOBJS	:= $(addprefix $(obj),$(SOBJS))
35e58fe957SKim Phillips
36e58fe957SKim Phillips$(LIB):	$(obj).depend $(OBJS)
37*6d8962e8SSebastien Carlier	$(call cmd_link_o_target, $(OBJS))
38e58fe957SKim Phillips
39e58fe957SKim Phillipsclean:
40e58fe957SKim Phillips	rm -f $(SOBJS) $(OBJS)
41e58fe957SKim Phillips
42e58fe957SKim Phillipsdistclean:	clean
43c8a3b109SWolfgang Denk	rm -f $(LIB) core *.bak $(obj).depend
44e58fe957SKim Phillips
45e58fe957SKim Phillips#########################################################################
46e58fe957SKim Phillips
47e58fe957SKim Phillips# defines $(obj).depend target
48e58fe957SKim Phillipsinclude $(SRCTREE)/rules.mk
49e58fe957SKim Phillips
50e58fe957SKim Phillipssinclude $(obj).depend
51e58fe957SKim Phillips
52e58fe957SKim Phillips#########################################################################
53