Nobuhiro Iwamatsu | 5b6918e | 2008-08-31 22:48:33 +0900 | [diff] [blame] | 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 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 8 | # SPDX-License-Identifier: GPL-2.0+ |
Nobuhiro Iwamatsu | 5b6918e | 2008-08-31 22:48:33 +0900 | [diff] [blame] | 9 | # |
| 10 | |
| 11 | include $(TOPDIR)/config.mk |
| 12 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 13 | LIB = $(obj)lib$(CPU).o |
Nobuhiro Iwamatsu | 5b6918e | 2008-08-31 22:48:33 +0900 | [diff] [blame] | 14 | |
Masahiro Yamada | 9c69e30 | 2013-10-21 11:53:25 +0900 | [diff] [blame] | 15 | START = start.o |
Kieran Bingham | c7e4e35 | 2008-12-30 01:16:03 +0000 | [diff] [blame] | 16 | COBJS = cpu.o interrupts.o watchdog.o |
Nobuhiro Iwamatsu | 5b6918e | 2008-08-31 22:48:33 +0900 | [diff] [blame] | 17 | |
Kieran Bingham | c7e4e35 | 2008-12-30 01:16:03 +0000 | [diff] [blame] | 18 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 19 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 20 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
Nobuhiro Iwamatsu | 5b6918e | 2008-08-31 22:48:33 +0900 | [diff] [blame] | 21 | |
Masahiro Yamada | 9c69e30 | 2013-10-21 11:53:25 +0900 | [diff] [blame] | 22 | all: $(START) $(LIB) |
| 23 | |
Kieran Bingham | c7e4e35 | 2008-12-30 01:16:03 +0000 | [diff] [blame] | 24 | $(LIB): $(OBJS) $(SOBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 25 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
Nobuhiro Iwamatsu | 5b6918e | 2008-08-31 22:48:33 +0900 | [diff] [blame] | 26 | |
Kieran Bingham | c7e4e35 | 2008-12-30 01:16:03 +0000 | [diff] [blame] | 27 | ######################################################################### |
Nobuhiro Iwamatsu | 5b6918e | 2008-08-31 22:48:33 +0900 | [diff] [blame] | 28 | |
| 29 | # defines $(obj).depend target |
| 30 | include $(SRCTREE)/rules.mk |
| 31 | |
| 32 | sinclude $(obj).depend |
| 33 | |
| 34 | ######################################################################### |