blob: 3a22aeebf1b7b30fe5fc220d92b3c49a5fa4cd86 [file] [log] [blame]
wdenkabf7a7c2003-12-08 01:34:36 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenkabf7a7c2003-12-08 01:34:36 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenkabf7a7c2003-12-08 01:34:36 +00006#
7
8include $(TOPDIR)/config.mk
9
10# CFLAGS += -DET_DEBUG
11
Sebastien Carliera8d426f2010-11-05 15:48:07 +010012LIB = $(obj)lib$(CPU).o
wdenkabf7a7c2003-12-08 01:34:36 +000013
TsiChungLiew8cd73be2007-08-15 19:21:21 -050014START = start.o
15COBJS = interrupts.o cpu.o speed.o cpu_init.o
wdenkabf7a7c2003-12-08 01:34:36 +000016
Marian Balakowiczd62379d2006-09-01 19:49:50 +020017SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
18OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
19START := $(addprefix $(obj),$(START))
20
21all: $(obj).depend $(START) $(LIB)
wdenkabf7a7c2003-12-08 01:34:36 +000022
23$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010024 $(call cmd_link_o_target, $(OBJS))
wdenkabf7a7c2003-12-08 01:34:36 +000025
26#########################################################################
27
Marian Balakowiczd62379d2006-09-01 19:49:50 +020028# defines $(obj).depend target
29include $(SRCTREE)/rules.mk
wdenkabf7a7c2003-12-08 01:34:36 +000030
Marian Balakowiczd62379d2006-09-01 19:49:50 +020031sinclude $(obj).depend
wdenkabf7a7c2003-12-08 01:34:36 +000032
33#########################################################################