summaryrefslogtreecommitdiff
path: root/board/xes/common/Makefile
blob: 2e5f1c522f95a7295b41577d0bfb31c38a192b56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#
# (C) Copyright 2006
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# SPDX-License-Identifier:	GPL-2.0+
#

include $(TOPDIR)/config.mk

ifneq ($(OBJTREE),$(SRCTREE))
$(shell mkdir -p $(obj)board/$(VENDOR)/common)
endif

LIB	= $(obj)lib$(VENDOR).o

COBJS-$(CONFIG_FSL_PCI_INIT)	+= fsl_8xxx_pci.o
COBJS-$(CONFIG_MPC8572)		+= fsl_8xxx_clk.o
COBJS-$(CONFIG_MPC86xx)		+= fsl_8xxx_clk.o
COBJS-$(CONFIG_P2020)		+= fsl_8xxx_clk.o
COBJS-$(CONFIG_MPC85xx)		+= fsl_8xxx_misc.o board.o
COBJS-$(CONFIG_MPC86xx)		+= fsl_8xxx_misc.o board.o
COBJS-$(CONFIG_NAND_ACTL)	+= actl_nand.o

SRCS	:= $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
OBJS	:= $(addprefix $(obj),$(COBJS-y))
SOBJS	:= $(addprefix $(obj),$(SOBJS))

$(LIB):	$(obj).depend $(OBJS)
	$(call cmd_link_o_target, $(OBJS))

#########################################################################

# defines $(obj).depend target
include $(SRCTREE)/rules.mk

sinclude $(obj).depend

#########################################################################