blob: 1d80df8b74d0ab95346425a73036275ba14a056f [file] [log] [blame]
wdenk544e9732004-02-06 23:19:44 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2002-2006
wdenk544e9732004-02-06 23:19:44 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk544e9732004-02-06 23:19:44 +00006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
wdenk544e9732004-02-06 23:19:44 +000011
Peter Tyser0ed08332009-07-17 19:01:03 -050012COBJS = $(BOARD).o
wdenk544e9732004-02-06 23:19:44 +000013SOBJS = init.o
14
Marian Balakowiczd62379d2006-09-01 19:49:50 +020015SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
16OBJS := $(addprefix $(obj),$(COBJS))
17SOBJS := $(addprefix $(obj),$(SOBJS))
18
wdenk544e9732004-02-06 23:19:44 +000019$(LIB): $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010020 $(call cmd_link_o_target, $(OBJS))
wdenk544e9732004-02-06 23:19:44 +000021
wdenk544e9732004-02-06 23:19:44 +000022#########################################################################
23
Marian Balakowiczd62379d2006-09-01 19:49:50 +020024# defines $(obj).depend target
25include $(SRCTREE)/rules.mk
wdenk544e9732004-02-06 23:19:44 +000026
Marian Balakowiczd62379d2006-09-01 19:49:50 +020027sinclude $(obj).depend
wdenk544e9732004-02-06 23:19:44 +000028
29#########################################################################