Nobuhiro Iwamatsu | 0b135cf | 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 | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 8 | # SPDX-License-Identifier: GPL-2.0+ |
Nobuhiro Iwamatsu | 0b135cf | 2007-05-13 20:58:00 +0900 | [diff] [blame] | 9 | # |
| 10 | |
| 11 | include $(TOPDIR)/config.mk |
| 12 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 13 | LIB = $(obj)lib$(CPU).o |
Nobuhiro Iwamatsu | 0b135cf | 2007-05-13 20:58:00 +0900 | [diff] [blame] | 14 | |
Wolfgang Denk | a30cc5a | 2008-07-02 23:38:50 +0200 | [diff] [blame] | 15 | SOBJS = start.o |
Nobuhiro Iwamatsu | e9d5f35 | 2008-11-20 16:44:42 +0900 | [diff] [blame] | 16 | COBJS = cpu.o interrupts.o watchdog.o cache.o |
Nobuhiro Iwamatsu | 0b135cf | 2007-05-13 20:58:00 +0900 | [diff] [blame] | 17 | |
Wolfgang Denk | a30cc5a | 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 | 0b135cf | 2007-05-13 20:58:00 +0900 | [diff] [blame] | 21 | |
Wolfgang Denk | a30cc5a | 2008-07-02 23:38:50 +0200 | [diff] [blame] | 22 | $(LIB): $(OBJS) $(SOBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 23 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
Wolfgang Denk | a30cc5a | 2008-07-02 23:38:50 +0200 | [diff] [blame] | 24 | |
Nobuhiro Iwamatsu | 0b135cf | 2007-05-13 20:58:00 +0900 | [diff] [blame] | 25 | ######################################################################### |
| 26 | |
Wolfgang Denk | a30cc5a | 2008-07-02 23:38:50 +0200 | [diff] [blame] | 27 | # defines $(obj).depend target |
| 28 | include $(SRCTREE)/rules.mk |
Nobuhiro Iwamatsu | 0b135cf | 2007-05-13 20:58:00 +0900 | [diff] [blame] | 29 | |
Wolfgang Denk | a30cc5a | 2008-07-02 23:38:50 +0200 | [diff] [blame] | 30 | sinclude $(obj).depend |
Nobuhiro Iwamatsu | 0b135cf | 2007-05-13 20:58:00 +0900 | [diff] [blame] | 31 | |
| 32 | ######################################################################### |