blob: 23a8631eb0c81ce3003d62658888db8224c29620 [file] [log] [blame]
Stefan Roese2a1a8cb2010-04-27 11:37:28 +02001#
2# (C) Copyright 2009-2010
3# Stefan Roese, DENX Software Engineering, sr@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Stefan Roese2a1a8cb2010-04-27 11:37:28 +02006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Stefan Roese2a1a8cb2010-04-27 11:37:28 +020011
12COBJS-y := $(BOARD).o
13COBJS-$(CONFIG_CMD_CHIP_CONFIG) += chip_config.o
14SOBJS = init.o
15
16COBJS := $(COBJS-y)
17SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
18OBJS := $(addprefix $(obj),$(COBJS))
19SOBJS := $(addprefix $(obj),$(SOBJS))
20
21$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010022 $(call cmd_link_o_target, $(OBJS))
Stefan Roese2a1a8cb2010-04-27 11:37:28 +020023
Stefan Roese2a1a8cb2010-04-27 11:37:28 +020024#########################################################################
25
26# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
28
29sinclude $(obj).depend
30
31#########################################################################