wdenk | 0db5bca | 2003-03-31 17:27:09 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 2 | # (C) Copyright 2006 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
wdenk | 0db5bca | 2003-03-31 17:27:09 +0000 | [diff] [blame] | 5 | # (C) Copyright 2003 |
| 6 | # Martin Winistoerfer, martinwinistoerfer@gmx.ch. |
| 7 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 8 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | 0db5bca | 2003-03-31 17:27:09 +0000 | [diff] [blame] | 9 | # |
| 10 | |
| 11 | # |
Stefan Roese | a47a12b | 2010-04-15 16:07:28 +0200 | [diff] [blame] | 12 | # File: arch/powerpc/cpu/mpc5xx/Makefile |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 13 | # |
wdenk | 0db5bca | 2003-03-31 17:27:09 +0000 | [diff] [blame] | 14 | # Discription: Makefile to build mpc5xx cpu configuration. |
| 15 | # Will include top config.mk which itselfs |
Stefan Roese | a47a12b | 2010-04-15 16:07:28 +0200 | [diff] [blame] | 16 | # uses the definitions made in arch/powerpc/cpu/mpc5xx/config.mk |
wdenk | 0db5bca | 2003-03-31 17:27:09 +0000 | [diff] [blame] | 17 | # |
| 18 | |
| 19 | |
| 20 | include $(TOPDIR)/config.mk |
| 21 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 22 | LIB = $(obj)lib$(CPU).o |
wdenk | 0db5bca | 2003-03-31 17:27:09 +0000 | [diff] [blame] | 23 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 24 | START = start.o |
| 25 | COBJS = serial.o cpu.o cpu_init.o interrupts.o traps.o speed.o spi.o |
wdenk | 0db5bca | 2003-03-31 17:27:09 +0000 | [diff] [blame] | 26 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 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) |
wdenk | 0db5bca | 2003-03-31 17:27:09 +0000 | [diff] [blame] | 32 | |
| 33 | $(LIB): $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 34 | $(call cmd_link_o_target, $(OBJS)) |
wdenk | 0db5bca | 2003-03-31 17:27:09 +0000 | [diff] [blame] | 35 | |
| 36 | ######################################################################### |
| 37 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 38 | # defines $(obj).depend target |
| 39 | include $(SRCTREE)/rules.mk |
wdenk | 0db5bca | 2003-03-31 17:27:09 +0000 | [diff] [blame] | 40 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 41 | sinclude $(obj).depend |
wdenk | 0db5bca | 2003-03-31 17:27:09 +0000 | [diff] [blame] | 42 | |
| 43 | ######################################################################### |