3 # Stefan Roese, DENX Software Engineering, sr@denx.de.
5 # SPDX-License-Identifier: GPL-2.0+
8 include $(TOPDIR)/config.mk
10 LIB = $(obj)lib$(BOARD).o
12 COBJS-$(CONFIG_IO64) += io64.o
14 COBJS-$(CONFIG_CMD_CHIP_CONFIG) += chip_config.o
16 COBJS := $(BOARD).o $(COBJS-y)
18 SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
19 OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
21 $(LIB): $(obj).depend $(OBJS)
22 $(call cmd_link_o_target, $(OBJS))
28 rm -f $(LIB) core *.bak $(obj).depend
30 #########################################################################
32 # defines $(obj).depend target
33 include $(SRCTREE)/rules.mk
35 sinclude $(obj).depend
37 #########################################################################