blob: e3e50af2cd56f557774184403ab49edb2d2e6f02 [file] [log] [blame]
wdenk0db5bca2003-03-31 17:27:09 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
wdenk0db5bca2003-03-31 17:27:09 +00005# (C) Copyright 2003
6# Martin Winistoerfer, martinwinistoerfer@gmx.ch.
7#
Wolfgang Denk1a459662013-07-08 09:37:19 +02008# SPDX-License-Identifier: GPL-2.0+
wdenk0db5bca2003-03-31 17:27:09 +00009#
10
11#
Stefan Roesea47a12b2010-04-15 16:07:28 +020012# File: arch/powerpc/cpu/mpc5xx/Makefile
wdenk8bde7f72003-06-27 21:31:46 +000013#
wdenk0db5bca2003-03-31 17:27:09 +000014# Discription: Makefile to build mpc5xx cpu configuration.
15# Will include top config.mk which itselfs
Stefan Roesea47a12b2010-04-15 16:07:28 +020016# uses the definitions made in arch/powerpc/cpu/mpc5xx/config.mk
wdenk0db5bca2003-03-31 17:27:09 +000017#
18
19
20include $(TOPDIR)/config.mk
21
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010022LIB = $(obj)lib$(CPU).o
wdenk0db5bca2003-03-31 17:27:09 +000023
Marian Balakowiczf9328632006-09-01 19:49:50 +020024START = start.o
25COBJS = serial.o cpu.o cpu_init.o interrupts.o traps.o speed.o spi.o
wdenk0db5bca2003-03-31 17:27:09 +000026
Marian Balakowiczf9328632006-09-01 19:49:50 +020027SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
28OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
29START := $(addprefix $(obj),$(START))
30
31all: $(obj).depend $(START) $(LIB)
wdenk0db5bca2003-03-31 17:27:09 +000032
33$(LIB): $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010034 $(call cmd_link_o_target, $(OBJS))
wdenk0db5bca2003-03-31 17:27:09 +000035
36#########################################################################
37
Marian Balakowiczf9328632006-09-01 19:49:50 +020038# defines $(obj).depend target
39include $(SRCTREE)/rules.mk
wdenk0db5bca2003-03-31 17:27:09 +000040
Marian Balakowiczf9328632006-09-01 19:49:50 +020041sinclude $(obj).depend
wdenk0db5bca2003-03-31 17:27:09 +000042
43#########################################################################