xref: /openbmc/u-boot/arch/sh/cpu/sh2/Makefile (revision 61698478)
1#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# Copyright (C) 2007,2008 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
6# Copyright (C) 2008 Renesas Solutions Corp.
7#
8# SPDX-License-Identifier:	GPL-2.0+
9#
10
11include $(TOPDIR)/config.mk
12
13LIB	= $(obj)lib$(CPU).o
14
15START	= start.o
16COBJS	= cpu.o interrupts.o watchdog.o
17
18SRCS    := $(SOBJS:.o=.S) $(COBJS:.o=.c)
19OBJS    := $(addprefix $(obj),$(COBJS))
20SOBJS   := $(addprefix $(obj),$(SOBJS))
21
22all:    $(START) $(LIB)
23
24$(LIB):	$(OBJS) $(SOBJS)
25	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
26
27#########################################################################
28
29# defines $(obj).depend target
30include $(SRCTREE)/rules.mk
31
32sinclude $(obj).depend
33
34#########################################################################
35