2003-04-01 02:27:09 +09:00
|
|
|
#
|
2006-09-02 02:49:50 +09:00
|
|
|
# (C) Copyright 2006
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
2003-04-01 02:27:09 +09:00
|
|
|
# (C) Copyright 2003
|
|
|
|
# Martin Winistoerfer, martinwinistoerfer@gmx.ch.
|
|
|
|
#
|
2013-07-08 16:37:19 +09:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2003-04-01 02:27:09 +09:00
|
|
|
#
|
|
|
|
|
|
|
|
#
|
2010-04-15 23:07:28 +09:00
|
|
|
# File: arch/powerpc/cpu/mpc5xx/Makefile
|
2003-06-28 06:31:46 +09:00
|
|
|
#
|
2003-04-01 02:27:09 +09:00
|
|
|
# Discription: Makefile to build mpc5xx cpu configuration.
|
|
|
|
# Will include top config.mk which itselfs
|
2010-04-15 23:07:28 +09:00
|
|
|
# uses the definitions made in arch/powerpc/cpu/mpc5xx/config.mk
|
2003-04-01 02:27:09 +09:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
2010-11-05 23:48:07 +09:00
|
|
|
LIB = $(obj)lib$(CPU).o
|
2006-09-02 02:49:50 +09:00
|
|
|
|
|
|
|
START = start.o
|
|
|
|
COBJS = serial.o cpu.o cpu_init.o interrupts.o traps.o speed.o spi.o
|
2003-04-01 02:27:09 +09:00
|
|
|
|
2006-09-02 02:49:50 +09:00
|
|
|
SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
|
|
|
|
START := $(addprefix $(obj),$(START))
|
2003-04-01 02:27:09 +09:00
|
|
|
|
2006-09-02 02:49:50 +09:00
|
|
|
all: $(obj).depend $(START) $(LIB)
|
2003-04-01 02:27:09 +09:00
|
|
|
|
|
|
|
$(LIB): $(OBJS)
|
2010-11-05 23:48:07 +09:00
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
2003-04-01 02:27:09 +09:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
2006-09-02 02:49:50 +09:00
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
2003-04-01 02:27:09 +09:00
|
|
|
|
2006-09-02 02:49:50 +09:00
|
|
|
sinclude $(obj).depend
|
2003-04-01 02:27:09 +09:00
|
|
|
|
|
|
|
#########################################################################
|