Nobuhiro Iwamatsu | 970dc33 | 2007-05-13 20:58:00 +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 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 8 | # SPDX-License-Identifier: GPL-2.0+ |
Nobuhiro Iwamatsu | 970dc33 | 2007-05-13 20:58:00 +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 | 970dc33 | 2007-05-13 20:58:00 +0900 | [diff] [blame] | 14 | |
Masahiro Yamada | 9c69e30 | 2013-10-21 11:53:25 +0900 | [diff] [blame] | 15 | START = start.o |
Nobuhiro Iwamatsu | ac89047 | 2008-11-20 16:44:42 +0900 | [diff] [blame] | 16 | COBJS = cpu.o interrupts.o watchdog.o cache.o |
Nobuhiro Iwamatsu | 970dc33 | 2007-05-13 20:58:00 +0900 | [diff] [blame] | 17 | |
Wolfgang Denk | 102740d | 2008-07-02 23:38:50 +0200 | [diff] [blame] | 18 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 19 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 20 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
Nobuhiro Iwamatsu | 970dc33 | 2007-05-13 20:58:00 +0900 | [diff] [blame] | 21 | |
Masahiro Yamada | 9c69e30 | 2013-10-21 11:53:25 +0900 | [diff] [blame] | 22 | all: $(START) $(LIB) |
| 23 | |
Wolfgang Denk | 102740d | 2008-07-02 23:38:50 +0200 | [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)) |
Wolfgang Denk | 102740d | 2008-07-02 23:38:50 +0200 | [diff] [blame] | 26 | |
Nobuhiro Iwamatsu | 970dc33 | 2007-05-13 20:58:00 +0900 | [diff] [blame] | 27 | ######################################################################### |
| 28 | |
Wolfgang Denk | 102740d | 2008-07-02 23:38:50 +0200 | [diff] [blame] | 29 | # defines $(obj).depend target |
| 30 | include $(SRCTREE)/rules.mk |
Nobuhiro Iwamatsu | 970dc33 | 2007-05-13 20:58:00 +0900 | [diff] [blame] | 31 | |
Wolfgang Denk | 102740d | 2008-07-02 23:38:50 +0200 | [diff] [blame] | 32 | sinclude $(obj).depend |
Nobuhiro Iwamatsu | 970dc33 | 2007-05-13 20:58:00 +0900 | [diff] [blame] | 33 | |
| 34 | ######################################################################### |