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
28e58fe957SKim PhillipsCOBJS	:= $(BOARD).o sdram.o
29e58fe957SKim Phillips
30e58fe957SKim PhillipsSRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
31e58fe957SKim PhillipsOBJS	:= $(addprefix $(obj),$(COBJS))
32e58fe957SKim PhillipsSOBJS	:= $(addprefix $(obj),$(SOBJS))
33e58fe957SKim Phillips
34e58fe957SKim Phillips$(LIB):	$(obj).depend $(OBJS)
35*6d8962e8SSebastien Carlier	$(call cmd_link_o_target, $(OBJS))
36e58fe957SKim Phillips
37e58fe957SKim Phillipsclean:
38e58fe957SKim Phillips	rm -f $(SOBJS) $(OBJS)
39e58fe957SKim Phillips
40e58fe957SKim Phillipsdistclean:	clean
41c8a3b109SWolfgang Denk	rm -f $(LIB) core *.bak $(obj).depend
42e58fe957SKim Phillips
43e58fe957SKim Phillips#########################################################################
44e58fe957SKim Phillips
45e58fe957SKim Phillips# defines $(obj).depend target
46e58fe957SKim Phillipsinclude $(SRCTREE)/rules.mk
47e58fe957SKim Phillips
48e58fe957SKim Phillipssinclude $(obj).depend
49e58fe957SKim Phillips
50e58fe957SKim Phillips#########################################################################
51