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 COBJS-$(CONFIG_FSL_PCI_INIT) += fsl_8xxx_pci.o
17 COBJS-$(CONFIG_MPC8572) += fsl_8xxx_clk.o
18 COBJS-$(CONFIG_MPC86xx) += fsl_8xxx_clk.o
19 COBJS-$(CONFIG_P2020) += fsl_8xxx_clk.o
20 COBJS-$(CONFIG_MPC85xx) += fsl_8xxx_misc.o board.o
21 COBJS-$(CONFIG_MPC86xx) += fsl_8xxx_misc.o board.o
22 COBJS-$(CONFIG_NAND_ACTL) += actl_nand.o
24 SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
25 OBJS := $(addprefix $(obj),$(COBJS-y))
26 SOBJS := $(addprefix $(obj),$(SOBJS))
28 $(LIB): $(obj).depend $(OBJS)
29 $(call cmd_link_o_target, $(OBJS))
31 #########################################################################
33 # defines $(obj).depend target
34 include $(SRCTREE)/rules.mk
36 sinclude $(obj).depend
38 #########################################################################