blob: 71d5e302ca620df0fc9e40db51b5fc18ef37d370 [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#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk1f045212002-03-10 14:37:15 +00006#
7
8include $(TOPDIR)/config.mk
9
10# CFLAGS += -DET_DEBUG
11
Sebastien Carliera8d426f2010-11-05 15:48:07 +010012LIB = $(obj)lib$(CPU).o
wdenk1f045212002-03-10 14:37:15 +000013
Wolfgang Denke71d99d2010-11-20 15:07:45 +010014SSTART-y += start.o
15CSTART-y += traps.o
Jean-Christophe PLAGNIOL-VILLARD007848c2008-04-02 08:03:56 +020016COBJS-y += bedbug_860.o
17COBJS-y += commproc.o
18COBJS-y += cpu.o
19COBJS-y += cpu_init.o
20COBJS-y += fec.o
21COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
22COBJS-y += i2c.o
23COBJS-y += interrupts.o
Jean-Christophe PLAGNIOL-VILLARD007848c2008-04-02 08:03:56 +020024COBJS-y += scc.o
25COBJS-y += serial.o
26COBJS-y += speed.o
27COBJS-y += spi.o
Jean-Christophe PLAGNIOL-VILLARD007848c2008-04-02 08:03:56 +020028COBJS-y += upatch.o
29COBJS-y += video.o
Wolfgang Denke71d99d2010-11-20 15:07:45 +010030SOBJS-y += kgdb.o
Jean-Christophe PLAGNIOL-VILLARD007848c2008-04-02 08:03:56 +020031SOBJS-y += plprcr_write.o
wdenk1f045212002-03-10 14:37:15 +000032
Wolfgang Denke71d99d2010-11-20 15:07:45 +010033SRCS := $(SSTART-y:.o=.S) $(CSTART-y:.o=.c) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
Jean-Christophe PLAGNIOL-VILLARD007848c2008-04-02 08:03:56 +020034OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
Wolfgang Denke71d99d2010-11-20 15:07:45 +010035START := $(addprefix $(obj),$(SSTART-y) $(CSTART-y))
wdenk1f045212002-03-10 14:37:15 +000036
Marian Balakowiczd62379d2006-09-01 19:49:50 +020037all: $(obj).depend $(START) $(LIB)
38
39$(LIB): $(OBJS)
Wolfgang Denke71d99d2010-11-20 15:07:45 +010040 $(call cmd_link_o_target, $(OBJS))
wdenk1f045212002-03-10 14:37:15 +000041
42#########################################################################
43
Marian Balakowiczd62379d2006-09-01 19:49:50 +020044# defines $(obj).depend target
45include $(SRCTREE)/rules.mk
wdenk1f045212002-03-10 14:37:15 +000046
Marian Balakowiczd62379d2006-09-01 19:49:50 +020047sinclude $(obj).depend
wdenk1f045212002-03-10 14:37:15 +000048
49#########################################################################