Yoshihiro Shimoda | ad1a3a9 | 2007-12-03 22:58:45 +0900 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2000-2006 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
| 5 | # (C) Copyright 2007 |
| 6 | # Nobuhiro Iwamatsu <iwamatsu@nigauri.org> |
| 7 | # |
| 8 | # (C) Copyright 2007 |
| 9 | # Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> |
| 10 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 11 | # SPDX-License-Identifier: GPL-2.0+ |
Yoshihiro Shimoda | ad1a3a9 | 2007-12-03 22:58:45 +0900 | [diff] [blame] | 12 | # |
| 13 | |
| 14 | include $(TOPDIR)/config.mk |
| 15 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 16 | LIB = $(obj)lib$(CPU).o |
Yoshihiro Shimoda | ad1a3a9 | 2007-12-03 22:58:45 +0900 | [diff] [blame] | 17 | |
Wolfgang Denk | 102740d | 2008-07-02 23:38:50 +0200 | [diff] [blame] | 18 | SOBJS = start.o |
Nobuhiro Iwamatsu | ac89047 | 2008-11-20 16:44:42 +0900 | [diff] [blame] | 19 | COBJS = cpu.o interrupts.o watchdog.o cache.o |
Yoshihiro Shimoda | ad1a3a9 | 2007-12-03 22:58:45 +0900 | [diff] [blame] | 20 | |
Wolfgang Denk | 102740d | 2008-07-02 23:38:50 +0200 | [diff] [blame] | 21 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 22 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 23 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
Yoshihiro Shimoda | ad1a3a9 | 2007-12-03 22:58:45 +0900 | [diff] [blame] | 24 | |
Wolfgang Denk | 102740d | 2008-07-02 23:38:50 +0200 | [diff] [blame] | 25 | $(LIB): $(OBJS) $(SOBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 26 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
Wolfgang Denk | 102740d | 2008-07-02 23:38:50 +0200 | [diff] [blame] | 27 | |
Yoshihiro Shimoda | ad1a3a9 | 2007-12-03 22:58:45 +0900 | [diff] [blame] | 28 | ######################################################################### |
| 29 | |
Wolfgang Denk | 102740d | 2008-07-02 23:38:50 +0200 | [diff] [blame] | 30 | # defines $(obj).depend target |
| 31 | include $(SRCTREE)/rules.mk |
Yoshihiro Shimoda | ad1a3a9 | 2007-12-03 22:58:45 +0900 | [diff] [blame] | 32 | |
Wolfgang Denk | 102740d | 2008-07-02 23:38:50 +0200 | [diff] [blame] | 33 | sinclude $(obj).depend |
Yoshihiro Shimoda | ad1a3a9 | 2007-12-03 22:58:45 +0900 | [diff] [blame] | 34 | |
| 35 | ######################################################################### |