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