blob: ebf4cb25122117fa16243d7285d2afe3b9579a39 [file] [log] [blame]
wdenke85390d2002-04-01 14:29:03 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenke85390d2002-04-01 14:29:03 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# See file CREDITS for list of people who contributed to this
6# project.
7#
8# This program is free software; you can redistribute it and/or
9# modify it under the terms of the GNU General Public License as
10# published by the Free Software Foundation; either version 2 of
11# the License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with this program; if not, write to the Free Software
20# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21# MA 02111-1307 USA
22#
23
24include $(TOPDIR)/config.mk
Marian Balakowiczf9328632006-09-01 19:49:50 +020025ifneq ($(OBJTREE),$(SRCTREE))
Wolfgang Denkcca4e4a2011-11-01 20:54:02 +000026$(shell mkdir -p $(obj)drivers/epic $(obj)drivers/i2c)
Marian Balakowiczf9328632006-09-01 19:49:50 +020027endif
wdenke85390d2002-04-01 14:29:03 +000028
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010029LIB = $(obj)lib$(CPU).o
wdenke85390d2002-04-01 14:29:03 +000030
Marian Balakowiczf9328632006-09-01 19:49:50 +020031START = start.o
32COBJS = traps.o cpu.o cpu_init.o interrupts.o speed.o \
33 drivers/epic/epic1.o drivers/i2c/i2c.o pci.o
34COBJS_LN = bedbug_603e.o
wdenke85390d2002-04-01 14:29:03 +000035
Marian Balakowiczf9328632006-09-01 19:49:50 +020036SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c) $(addprefix $(obj),$(COBJS_LN:.o=.c))
37OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS) $(COBJS_LN))
38START := $(addprefix $(obj),$(START))
39
40all: $(obj).depend $(START) $(LIB)
wdenke85390d2002-04-01 14:29:03 +000041
42$(LIB): $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010043 $(call cmd_link_o_target, $(OBJS))
wdenke85390d2002-04-01 14:29:03 +000044
Marian Balakowiczf9328632006-09-01 19:49:50 +020045$(obj)bedbug_603e.c:
Wolfgang Denke92c9a82009-01-14 22:35:30 +010046 ln -sf $(src)../mpc8260/bedbug_603e.c $(obj)bedbug_603e.c
wdenk43d96162003-03-06 00:02:04 +000047
wdenke85390d2002-04-01 14:29:03 +000048#########################################################################
49
Marian Balakowiczf9328632006-09-01 19:49:50 +020050# defines $(obj).depend target
51include $(SRCTREE)/rules.mk
wdenke85390d2002-04-01 14:29:03 +000052
Marian Balakowiczf9328632006-09-01 19:49:50 +020053sinclude $(obj).depend
wdenke85390d2002-04-01 14:29:03 +000054
55#########################################################################