3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6 # Josh Huber <huber@mclx.com>, Mission Critical Linux, Inc.
8 # SPDX-License-Identifier: GPL-2.0+
11 include $(TOPDIR)/config.mk
13 LIB = $(obj)lib$(CPU).o
16 SOBJS = cache.o kgdb.o io.o
17 COBJS = traps.o cpu.o cpu_init.o speed.o interrupts.o
19 SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
20 OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
21 START := $(addprefix $(obj),$(START))
23 all: $(obj).depend $(START) $(LIB)
26 $(call cmd_link_o_target, $(OBJS))
28 #########################################################################
30 # defines $(obj).depend target
31 include $(SRCTREE)/rules.mk
33 sinclude $(obj).depend
35 #########################################################################