blob: 3018f6c63a7c211fa888e1349d49a94d2bfac609 [file] [log] [blame]
Dirk Behme2781f802009-01-27 18:19:12 +01001#
2# (C) Copyright 2000, 2001, 2002
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Dirk Behme2781f802009-01-27 18:19:12 +01006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Dirk Behme2781f802009-01-27 18:19:12 +010011
Jason Kridnerc3ef8bc2011-04-18 17:23:35 -040012COBJS-y := $(BOARD).o
13COBJS-$(CONFIG_STATUS_LED) += led.o
Dirk Behme2781f802009-01-27 18:19:12 +010014
Jason Kridnerc3ef8bc2011-04-18 17:23:35 -040015COBJS := $(sort $(COBJS-y))
Dirk Behme2781f802009-01-27 18:19:12 +010016SRCS := $(COBJS:.o=.c)
17OBJS := $(addprefix $(obj),$(COBJS))
18
19$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010020 $(call cmd_link_o_target, $(OBJS))
Dirk Behme2781f802009-01-27 18:19:12 +010021
Dirk Behme2781f802009-01-27 18:19:12 +010022#########################################################################
23
24# defines $(obj).depend target
25include $(SRCTREE)/rules.mk
26
27sinclude $(obj).depend
28
29#########################################################################