xref: /openbmc/u-boot/arch/powerpc/cpu/mpc86xx/Makefile (revision c0dcece7)
1#
2# Copyright 2007 Freescale Semiconductor, Inc.
3# (C) Copyright 2002,2003 Motorola Inc.
4# Xianghua Xiao,X.Xiao@motorola.com
5#
6# (C) Copyright 2004 Freescale Semiconductor. (MC86xx Port)
7# Jeff Brown
8# SPDX-License-Identifier:	GPL-2.0+
9#
10
11include $(TOPDIR)/config.mk
12
13LIB	= $(obj)lib$(CPU).o
14
15SSTART	= start.o
16CSTART	= traps.o
17
18SOBJS-y += cache.o
19SOBJS-$(CONFIG_MP) += release.o
20
21COBJS-y	+= cpu.o
22COBJS-y	+= cpu_init.o
23# 8610 & 8641 are identical w/regards to DDR
24COBJS-$(CONFIG_MPC8610) += ddr-8641.o
25COBJS-$(CONFIG_MPC8641) += ddr-8641.o
26COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
27COBJS-y	+= interrupts.o
28COBJS-$(CONFIG_MP) += mp.o
29COBJS-$(CONFIG_MPC8610) += mpc8610_serdes.o
30COBJS-$(CONFIG_MPC8641) += mpc8641_serdes.o
31COBJS-y	+= speed.o
32
33SRCS	:= $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
34OBJS	:= $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
35START	:= $(addprefix $(obj),$(SSTART) $(CSTART))
36
37all:	$(obj).depend $(START) $(LIB)
38
39$(LIB):	$(OBJS)
40	$(call cmd_link_o_target, $(OBJS))
41
42#########################################################################
43
44# defines $(obj).depend target
45include $(SRCTREE)/rules.mk
46
47sinclude $(obj).depend
48
49#########################################################################
50