Wolfgang Denk | 7b64fef | 2006-10-24 14:21:16 +0200 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2002-2006 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
| 5 | # (C) Copyright 2004-2006 Atmel Corporation |
| 6 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 7 | # SPDX-License-Identifier: GPL-2.0+ |
Wolfgang Denk | 7b64fef | 2006-10-24 14:21:16 +0200 | [diff] [blame] | 8 | # |
| 9 | |
| 10 | include $(TOPDIR)/config.mk |
| 11 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 12 | LIB = $(obj)lib$(ARCH).o |
Wolfgang Denk | 7b64fef | 2006-10-24 14:21:16 +0200 | [diff] [blame] | 13 | |
Marian Balakowicz | 823afe7 | 2008-02-27 11:00:47 +0100 | [diff] [blame] | 14 | SOBJS-y += memset.o |
Wolfgang Denk | 7b64fef | 2006-10-24 14:21:16 +0200 | [diff] [blame] | 15 | |
Marian Balakowicz | 823afe7 | 2008-02-27 11:00:47 +0100 | [diff] [blame] | 16 | COBJS-y += board.o |
Dirk Eibach | b8eee43 | 2013-06-26 15:55:16 +0200 | [diff] [blame] | 17 | COBJS-$(CONFIG_CMD_BOOTM) += bootm.o |
Marian Balakowicz | 823afe7 | 2008-02-27 11:00:47 +0100 | [diff] [blame] | 18 | COBJS-y += interrupts.o |
Wolfgang Denk | 7b64fef | 2006-10-24 14:21:16 +0200 | [diff] [blame] | 19 | |
Marian Balakowicz | 823afe7 | 2008-02-27 11:00:47 +0100 | [diff] [blame] | 20 | SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) |
| 21 | OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y)) |
Wolfgang Denk | 7b64fef | 2006-10-24 14:21:16 +0200 | [diff] [blame] | 22 | |
| 23 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 24 | $(call cmd_link_o_target, $(OBJS)) |
Wolfgang Denk | 7b64fef | 2006-10-24 14:21:16 +0200 | [diff] [blame] | 25 | |
| 26 | ######################################################################### |
| 27 | |
| 28 | # defines $(obj).depend target |
| 29 | include $(SRCTREE)/rules.mk |
| 30 | |
| 31 | sinclude $(obj).depend |
| 32 | |
| 33 | ######################################################################### |