blob: d5245d32f63b086c65f1bb386437375d9f5d44a4 [file] [log] [blame]
Wolfgang Denk7b64fef2006-10-24 14:21:16 +02001#
2# (C) Copyright 2002-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# (C) Copyright 2004-2006 Atmel Corporation
6#
Wolfgang Denk1a459662013-07-08 09:37:19 +02007# SPDX-License-Identifier: GPL-2.0+
Wolfgang Denk7b64fef2006-10-24 14:21:16 +02008#
9
10include $(TOPDIR)/config.mk
11
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010012LIB = $(obj)lib$(ARCH).o
Wolfgang Denk7b64fef2006-10-24 14:21:16 +020013
Marian Balakowicz823afe72008-02-27 11:00:47 +010014SOBJS-y += memset.o
Wolfgang Denk7b64fef2006-10-24 14:21:16 +020015
Marian Balakowicz823afe72008-02-27 11:00:47 +010016COBJS-y += board.o
Dirk Eibachb8eee432013-06-26 15:55:16 +020017COBJS-$(CONFIG_CMD_BOOTM) += bootm.o
Marian Balakowicz823afe72008-02-27 11:00:47 +010018COBJS-y += interrupts.o
Wolfgang Denk7b64fef2006-10-24 14:21:16 +020019
Marian Balakowicz823afe72008-02-27 11:00:47 +010020SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
21OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
Wolfgang Denk7b64fef2006-10-24 14:21:16 +020022
23$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010024 $(call cmd_link_o_target, $(OBJS))
Wolfgang Denk7b64fef2006-10-24 14:21:16 +020025
26#########################################################################
27
28# defines $(obj).depend target
29include $(SRCTREE)/rules.mk
30
31sinclude $(obj).depend
32
33#########################################################################