3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6 # Martin Winistoerfer, martinwinistoerfer@gmx.ch.
8 # SPDX-License-Identifier: GPL-2.0+
12 # File: arch/powerpc/cpu/mpc5xx/Makefile
14 # Discription: Makefile to build mpc5xx cpu configuration.
15 # Will include top config.mk which itselfs
16 # uses the definitions made in arch/powerpc/cpu/mpc5xx/config.mk
20 include $(TOPDIR
)/config.mk
22 LIB
= $(obj
)lib
$(CPU
).o
25 COBJS
= serial.o cpu.o cpu_init.o interrupts.o traps.o speed.o spi.o
27 SRCS
:= $(START
:.o
=.S
) $(SOBJS
:.o
=.S
) $(COBJS
:.o
=.c
)
28 OBJS
:= $(addprefix $(obj
),$(SOBJS
) $(COBJS
))
29 START
:= $(addprefix $(obj
),$(START
))
31 all: $(obj
).depend
$(START
) $(LIB
)
34 $(call cmd_link_o_target
, $(OBJS
))
36 #########################################################################
38 # defines $(obj).depend target
39 include $(SRCTREE
)/rules.mk
41 sinclude
$(obj
).depend
43 #########################################################################