blob: e5384cc10e85e070d3370562ebce6cf03813fc51 [file] [log] [blame]
TsiChungLiewc8758102008-01-14 17:46:19 -06001#
2# (C) Copyright 2000-2004
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
TsiChungLiewc8758102008-01-14 17:46:19 -06006#
7
8include $(TOPDIR)/config.mk
9
10# CFLAGS += -DET_DEBUG
11
stany MARCELaa2bd9b2011-10-14 04:38:02 +000012LIB = $(obj)lib$(CPU).o
TsiChungLiewc8758102008-01-14 17:46:19 -060013
14START = start.o
TsiChung Liewee0a8462009-06-30 14:18:29 +000015COBJS = cpu.o speed.o cpu_init.o interrupts.o
TsiChungLiewc8758102008-01-14 17:46:19 -060016
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 Carlier6d8962e2010-11-05 15:48:07 +010024 $(call cmd_link_o_target, $(OBJS))
TsiChungLiewc8758102008-01-14 17:46:19 -060025
26#########################################################################
27
28include $(SRCTREE)/rules.mk
29
30sinclude $(obj).depend
31
32#########################################################################