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