blob: 7d71dd9ca5093e4543f1dcb5c06fa29395c93d9c [file] [log] [blame]
TsiChung Liewf6afe722007-06-18 13:50:13 -05001#
2# (C) Copyright 2000-2004
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
TsiChung Liewf6afe722007-06-18 13:50:13 -05006#
7
8include $(TOPDIR)/config.mk
9
10# CFLAGS += -DET_DEBUG
11
stany MARCELb0cbdc52011-10-14 04:38:02 +000012LIB = $(obj)lib$(CPU).o
TsiChung Liewf6afe722007-06-18 13:50:13 -050013
14START =
TsiChungLiew8ab28df2007-07-05 23:10:40 -050015COBJS = cpu.o speed.o cpu_init.o interrupts.o
TsiChung Liewf6afe722007-06-18 13:50:13 -050016
17SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
18OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
19START := $(addprefix $(obj),$(START))
20
21all: $(obj).depend $(START) $(LIB)
22
23$(LIB): $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010024 $(call cmd_link_o_target, $(OBJS))
TsiChung Liewf6afe722007-06-18 13:50:13 -050025
26#########################################################################
27
28include $(SRCTREE)/rules.mk
29
30sinclude $(obj).depend
31
32#########################################################################