blob: b190ebad2a800005d78eed5010447662a0ecc31e [file] [log] [blame]
Stefan Roese4745aca2007-02-20 10:57:08 +01001#
2# (C) Copyright 2007
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Stefan Roese4745aca2007-02-20 10:57:08 +01006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Stefan Roese4745aca2007-02-20 10:57:08 +010011
Stefan Roeseefe12bc2009-11-09 14:15:42 +010012COBJS-y := $(BOARD).o
13COBJS-$(CONFIG_CMD_CHIP_CONFIG) += chip_config.o
Stefan Roese4745aca2007-02-20 10:57:08 +010014SOBJS = init.o
15
Stefan Roeseefe12bc2009-11-09 14:15:42 +010016COBJS := $(COBJS-y)
Stefan Roese4745aca2007-02-20 10:57:08 +010017SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
18OBJS := $(addprefix $(obj),$(COBJS))
19SOBJS := $(addprefix $(obj),$(SOBJS))
20
21$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010022 $(call cmd_link_o_target, $(OBJS))
Stefan Roese4745aca2007-02-20 10:57:08 +010023
Stefan Roese4745aca2007-02-20 10:57:08 +010024#########################################################################
25
26# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
28
29sinclude $(obj).depend
30
31#########################################################################