3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # SPDX-License-Identifier: GPL-2.0+
8 include $(TOPDIR)/config.mk
10 ifneq ($(OBJTREE),$(SRCTREE))
11 $(shell mkdir -p $(obj)board/$(VENDOR)/common)
14 LIB = $(obj)lib$(VENDOR).o
16 ifndef CONFIG_SPL_BUILD
18 SOBJS := spr_lowlevel_init.o
21 SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
22 OBJS := $(addprefix $(obj),$(COBJS))
23 SOBJS := $(addprefix $(obj),$(SOBJS))
25 $(LIB): $(obj).depend $(OBJS) $(SOBJS)
26 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
28 #########################################################################
29 # This is for $(obj).depend target
30 include $(SRCTREE)/rules.mk
32 sinclude $(obj).depend
34 #########################################################################