]> git.sur5r.net Git - u-boot/blob - arch/openrisc/cpu/Makefile
Merge branch 'next' of git://git.denx.de/u-boot-mpc83xx
[u-boot] / arch / openrisc / cpu / Makefile
1 #
2 # (C) Copyright 2011
3 # Julius Baxter <julius@opencores.org>
4 #
5 # SPDX-License-Identifier:      GPL-2.0+
6 #
7
8 include $(TOPDIR)/config.mk
9
10 LIB     = $(obj)lib$(CPU).o
11
12 START   = start.o
13 COBJS-y = cache.o cpu.o exceptions.o interrupts.o
14
15 SRCS    := $(START:.o=.S) $(COBJS-y:.o=.c)
16 OBJS    := $(addprefix $(obj),$(COBJS-y))
17 START   := $(addprefix $(obj),$(START))
18
19 all:    $(obj).depend $(START) $(LIB)
20
21 $(LIB): $(OBJS)
22         $(call cmd_link_o_target, $(OBJS))
23
24 #########################################################################
25
26 # defines $(obj).depend target
27 include $(SRCTREE)/rules.mk
28
29 sinclude $(obj).depend
30
31 #########################################################################