blob: f78fe13d3552d14020ff657002f8b2e9d1b46621 [file] [log] [blame]
Stefan Roeseabbd0da2009-06-09 11:50:40 +02001#
2# (C) Copyright 2009 Wolfgang Denk <wd@denx.de>
3#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004# SPDX-License-Identifier: GPL-2.0+
Stefan Roeseabbd0da2009-06-09 11:50:40 +02005#
6
7include $(TOPDIR)/config.mk
8
Sebastien Carliera8d426f2010-11-05 15:48:07 +01009LIB = $(obj)lib$(BOARD).o
Stefan Roeseabbd0da2009-06-09 11:50:40 +020010
11COBJS-y := $(BOARD).o
12
13COBJS := $(COBJS-y)
14SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
15OBJS := $(addprefix $(obj),$(COBJS))
16SOBJS := $(addprefix $(obj),$(SOBJS))
17
18$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010019 $(call cmd_link_o_target, $(OBJS))
Stefan Roeseabbd0da2009-06-09 11:50:40 +020020
Stefan Roeseabbd0da2009-06-09 11:50:40 +020021#########################################################################
22
23# defines $(obj).depend target
24include $(SRCTREE)/rules.mk
25
26sinclude $(obj).depend
27
28#########################################################################