blob: f462264b8db65fca92ef6a5b1886f58bfa4a8681 [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
Albert ARIBAUD60fbc8d2011-08-04 18:45:45 +02009# Daniel Engström, Omicron Ceti AB, daniel@omicron.se.
Graeme Russd228d732009-02-24 21:11:24 +110010#
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 Russ6ec45592011-04-13 19:43:29 +100036COBJS-$(CONFIG_SYS_SC520_RESET) += sc520_reset.o
Graeme Russ38183932011-02-12 15:11:54 +110037COBJS-$(CONFIG_SYS_SC520) += sc520_sdram.o
Graeme Russ85cc39f2009-02-24 21:14:32 +110038COBJS-$(CONFIG_SYS_SC520_SSI) += sc520_ssi.o
39COBJS-$(CONFIG_SYS_SC520_TIMER) += sc520_timer.o
Graeme Russ85cc39f2009-02-24 21:14:32 +110040
Graeme Russbc761932011-02-12 15:11:52 +110041SOBJS-$(CONFIG_SYS_SC520) += sc520_car.o
Graeme Russd228d732009-02-24 21:11:24 +110042
43SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
44OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
45
46all: $(obj).depend $(LIB)
47
48$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010049 $(call cmd_link_o_target, $(OBJS))
Graeme Russd228d732009-02-24 21:11:24 +110050
51#########################################################################
52
53# defines $(obj).depend target
54include $(SRCTREE)/rules.mk
55
56sinclude $(obj).depend
57
58#########################################################################