blob: dbdc2e061254ff8d7f3f31218f516a915f468359 [file] [log] [blame]
wdenk1f045212002-03-10 14:37:15 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenk1f045212002-03-10 14:37:15 +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
25
26# CFLAGS += -DET_DEBUG
27
Marian Balakowiczd62379d2006-09-01 19:49:50 +020028LIB = $(obj)lib$(CPU).a
wdenk1f045212002-03-10 14:37:15 +000029
30START = start.o kgdb.o
Marian Balakowiczd62379d2006-09-01 19:49:50 +020031COBJS = bedbug_860.o commproc.o cpu.o cpu_init.o \
Bryan O'Donoghue86c8d742008-02-17 22:57:47 +000032 fec.o fdt.o i2c.o interrupts.o lcd.o scc.o \
wdenk7539dea2003-06-19 23:01:32 +000033 serial.o speed.o spi.o \
wdenk4e112c12003-06-03 23:54:09 +000034 traps.o upatch.o video.o
wdenkb50cde52004-01-24 20:25:54 +000035SOBJS = plprcr_write.o
wdenk1f045212002-03-10 14:37:15 +000036
Marian Balakowiczd62379d2006-09-01 19:49:50 +020037SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
38OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
39START := $(addprefix $(obj),$(START))
wdenk1f045212002-03-10 14:37:15 +000040
Marian Balakowiczd62379d2006-09-01 19:49:50 +020041all: $(obj).depend $(START) $(LIB)
42
43$(LIB): $(OBJS)
Wolfgang Denk6a65e422006-10-09 01:02:05 +020044 $(AR) $(ARFLAGS) $@ $(OBJS) $(obj)kgdb.o
wdenk1f045212002-03-10 14:37:15 +000045
46#########################################################################
47
Marian Balakowiczd62379d2006-09-01 19:49:50 +020048# defines $(obj).depend target
49include $(SRCTREE)/rules.mk
wdenk1f045212002-03-10 14:37:15 +000050
Marian Balakowiczd62379d2006-09-01 19:49:50 +020051sinclude $(obj).depend
wdenk1f045212002-03-10 14:37:15 +000052
53#########################################################################