blob: d5245d32f63b086c65f1bb386437375d9f5d44a4 [file] [log] [blame]
Wolfgang Denk83c15852006-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 Denkd79de1d2013-07-08 09:37:19 +02007# SPDX-License-Identifier: GPL-2.0+
Wolfgang Denk83c15852006-10-24 14:21:16 +02008#
9
10include $(TOPDIR)/config.mk
11
Sebastien Carliera8d426f2010-11-05 15:48:07 +010012LIB = $(obj)lib$(ARCH).o
Wolfgang Denk83c15852006-10-24 14:21:16 +020013
Marian Balakowicz699ffe52008-02-27 11:00:47 +010014SOBJS-y += memset.o
Wolfgang Denk83c15852006-10-24 14:21:16 +020015
Marian Balakowicz699ffe52008-02-27 11:00:47 +010016COBJS-y += board.o
Dirk Eibachd2df8112013-06-26 15:55:16 +020017COBJS-$(CONFIG_CMD_BOOTM) += bootm.o
Marian Balakowicz699ffe52008-02-27 11:00:47 +010018COBJS-y += interrupts.o
Wolfgang Denk83c15852006-10-24 14:21:16 +020019
Marian Balakowicz699ffe52008-02-27 11:00:47 +010020SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
21OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
Wolfgang Denk83c15852006-10-24 14:21:16 +020022
23$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010024 $(call cmd_link_o_target, $(OBJS))
Wolfgang Denk83c15852006-10-24 14:21:16 +020025
26#########################################################################
27
28# defines $(obj).depend target
29include $(SRCTREE)/rules.mk
30
31sinclude $(obj).depend
32
33#########################################################################