1*52f69f81SVladimir Zapolskiy#
2*52f69f81SVladimir Zapolskiy# (C) Copyright 2000-2006
3*52f69f81SVladimir Zapolskiy# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4*52f69f81SVladimir Zapolskiy#
5*52f69f81SVladimir Zapolskiy# See file CREDITS for list of people who contributed to this
6*52f69f81SVladimir Zapolskiy# project.
7*52f69f81SVladimir Zapolskiy#
8*52f69f81SVladimir Zapolskiy# This program is free software; you can redistribute it and/or
9*52f69f81SVladimir Zapolskiy# modify it under the terms of the GNU General Public License
10*52f69f81SVladimir Zapolskiy# as published by the Free Software Foundation; either version 2
11*52f69f81SVladimir Zapolskiy# of the License, or (at your option) any later version.
12*52f69f81SVladimir Zapolskiy#
13*52f69f81SVladimir Zapolskiy# This program is distributed in the hope that it will be useful,
14*52f69f81SVladimir Zapolskiy# but WITHOUT ANY WARRANTY; without even the implied warranty of
15*52f69f81SVladimir Zapolskiy# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16*52f69f81SVladimir Zapolskiy# GNU General Public License for more details.
17*52f69f81SVladimir Zapolskiy#
18*52f69f81SVladimir Zapolskiy# You should have received a copy of the GNU General Public License
19*52f69f81SVladimir Zapolskiy# along with this program; if not, write to the Free Software
20*52f69f81SVladimir Zapolskiy# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21*52f69f81SVladimir Zapolskiy# MA  02110-1301, USA.
22*52f69f81SVladimir Zapolskiy#
23*52f69f81SVladimir Zapolskiy
24*52f69f81SVladimir Zapolskiyinclude $(TOPDIR)/config.mk
25*52f69f81SVladimir Zapolskiy
26*52f69f81SVladimir ZapolskiyLIB     = $(obj)lib$(SOC).o
27*52f69f81SVladimir Zapolskiy
28*52f69f81SVladimir ZapolskiyCOBJS   = cpu.o clk.o devices.o timer.o
29*52f69f81SVladimir Zapolskiy
30*52f69f81SVladimir ZapolskiySRCS    := $(SOBJS:.o=.S) $(COBJS:.o=.c)
31*52f69f81SVladimir ZapolskiyOBJS    := $(addprefix $(obj),$(COBJS) $(SOBJS))
32*52f69f81SVladimir Zapolskiy
33*52f69f81SVladimir Zapolskiyall:    $(obj).depend $(LIB)
34*52f69f81SVladimir Zapolskiy
35*52f69f81SVladimir Zapolskiy$(LIB): $(OBJS)
36*52f69f81SVladimir Zapolskiy	$(call cmd_link_o_target, $(OBJS))
37*52f69f81SVladimir Zapolskiy
38*52f69f81SVladimir Zapolskiy#########################################################################
39*52f69f81SVladimir Zapolskiy
40*52f69f81SVladimir Zapolskiy# defines $(obj).depend target
41*52f69f81SVladimir Zapolskiyinclude $(SRCTREE)/rules.mk
42*52f69f81SVladimir Zapolskiy
43*52f69f81SVladimir Zapolskiysinclude $(obj).depend
44*52f69f81SVladimir Zapolskiy
45*52f69f81SVladimir Zapolskiy#########################################################################
46