blob: 54260b610763c4223ca5de4413c8804217b5fbf2 [file] [log] [blame]
Graeme Russd228d732009-02-24 21:11:24 +11001#
2# (C) Copyright 2008
3# Graeme Russ, graeme.russ@gmail.com.
4#
5# (C) Copyright 2006
6# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
7#
8# (C) Copyright 2002
9# Daniel Engström, Omicron Ceti AB, daniel@omicron.se.
10#
11# See file CREDITS for list of people who contributed to this
12# project.
13#
14# This program is free software; you can redistribute it and/or
15# modify it under the terms of the GNU General Public License as
16# published by the Free Software Foundation; either version 2 of
17# the License, or (at your option) any later version.
18#
19# This program is distributed in the hope that it will be useful,
20# but WITHOUT ANY WARRANTY; without even the implied warranty of
21# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22# GNU General Public License for more details.
23#
24# You should have received a copy of the GNU General Public License
25# along with this program; if not, write to the Free Software
26# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
27# MA 02111-1307 USA
28#
29
30include $(TOPDIR)/config.mk
31
Sebastien Carliera8d426f2010-11-05 15:48:07 +010032LIB := $(obj)lib$(SOC).o
Graeme Russd228d732009-02-24 21:11:24 +110033
34COBJS-$(CONFIG_SYS_SC520) += sc520.o
Graeme Russ327b3f82011-02-12 15:11:25 +110035COBJS-$(CONFIG_PCI) += sc520_pci.o
Graeme Russ38183932011-02-12 15:11:54 +110036COBJS-$(CONFIG_SYS_SC520) += sc520_sdram.o
Graeme Russ85cc39f2009-02-24 21:14:32 +110037COBJS-$(CONFIG_SYS_SC520_SSI) += sc520_ssi.o
38COBJS-$(CONFIG_SYS_SC520_TIMER) += sc520_timer.o
Graeme Russ85cc39f2009-02-24 21:14:32 +110039
Graeme Russbc761932011-02-12 15:11:52 +110040SOBJS-$(CONFIG_SYS_SC520) += sc520_car.o
Graeme Russd228d732009-02-24 21:11:24 +110041
42SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
43OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
44
45all: $(obj).depend $(LIB)
46
47$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010048 $(call cmd_link_o_target, $(OBJS))
Graeme Russd228d732009-02-24 21:11:24 +110049
50#########################################################################
51
52# defines $(obj).depend target
53include $(SRCTREE)/rules.mk
54
55sinclude $(obj).depend
56
57#########################################################################