2 # (C) Copyright 2000-2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # SPDX-License-Identifier: GPL-2.0+
8 include $(TOPDIR)/config.mk
10 LIB = $(obj)lib$(CPU).o
15 COBJS-$(CONFIG_USE_IRQ) += interrupts.o
18 SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
19 OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
20 START := $(addprefix $(obj),$(START))
22 all: $(obj).depend $(START) $(LIB)
25 $(call cmd_link_o_target, $(OBJS))
27 #########################################################################
29 # defines $(obj).depend target
30 include $(SRCTREE)/rules.mk
32 sinclude $(obj).depend
34 #########################################################################