]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/powerpc/cpu/mpc5xx/Makefile
Add GPL-2.0+ SPDX-License-Identifier to source files
[karo-tx-uboot.git] / arch / powerpc / cpu / mpc5xx / Makefile
1 #
2 # (C) Copyright 2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 #
5 # (C) Copyright 2003
6 # Martin Winistoerfer, martinwinistoerfer@gmx.ch.
7 #
8 # SPDX-License-Identifier:      GPL-2.0+
9 #
10
11 #
12 # File:                 arch/powerpc/cpu/mpc5xx/Makefile
13 #
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
17 #
18
19
20 include $(TOPDIR)/config.mk
21
22 LIB     = $(obj)lib$(CPU).o
23
24 START   = start.o
25 COBJS   = serial.o cpu.o cpu_init.o interrupts.o traps.o speed.o spi.o
26
27 SRCS    := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
28 OBJS    := $(addprefix $(obj),$(SOBJS) $(COBJS))
29 START   := $(addprefix $(obj),$(START))
30
31 all:    $(obj).depend $(START) $(LIB)
32
33 $(LIB): $(OBJS)
34         $(call cmd_link_o_target, $(OBJS))
35
36 #########################################################################
37
38 # defines $(obj).depend target
39 include $(SRCTREE)/rules.mk
40
41 sinclude $(obj).depend
42
43 #########################################################################