blob: 7e7ff2747a1306ba3274e5a1c6ab62bfa34592d3 [file] [log] [blame]
Stefan Roese7de9fc72007-10-05 17:11:30 +02001#
2# (C) Copyright 2007
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 Roese7de9fc72007-10-05 17:11:30 +02006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Stefan Roese7de9fc72007-10-05 17:11:30 +020011
Stefan Roese142a2e62009-07-21 14:06:29 +020012COBJS-y := $(BOARD).o
13COBJS-$(CONFIG_CMD_CHIP_CONFIG) += chip_config.o
Stefan Roese7de9fc72007-10-05 17:11:30 +020014
Stefan Roese142a2e62009-07-21 14:06:29 +020015COBJS := $(COBJS-y)
Wolfgang Denka1be4762008-05-20 16:00:29 +020016SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
Stefan Roese7de9fc72007-10-05 17:11:30 +020017OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
18
19$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010020 $(call cmd_link_o_target, $(OBJS))
Stefan Roese7de9fc72007-10-05 17:11:30 +020021
Stefan Roese7de9fc72007-10-05 17:11:30 +020022#########################################################################
23
24# defines $(obj).depend target
25include $(SRCTREE)/rules.mk
26
27sinclude $(obj).depend
28
29#########################################################################