blob: 13d3c9bb3c82c33c47701b99f0e83fa43bbf1750 [file] [log] [blame]
TsiChungLiew8999e6b2008-01-15 13:37:34 -06001#
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+
TsiChungLiew8999e6b2008-01-15 13:37:34 -06006#
7
8include $(TOPDIR)/config.mk
9
10# CFLAGS += -DET_DEBUG
11
stany MARCELb0cbdc52011-10-14 04:38:02 +000012LIB = $(obj)lib$(CPU).o
TsiChungLiew8999e6b2008-01-15 13:37:34 -060013
14START =
15COBJS = cpu.o speed.o cpu_init.o pci.o interrupts.o slicetimer.o
16
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))
TsiChungLiew8999e6b2008-01-15 13:37:34 -060025
26#########################################################################
27
28include $(SRCTREE)/rules.mk
29
30sinclude $(obj).depend
31
32#########################################################################