blob: 997f07ec114af57d2c61a0252094731cc5ac5232 [file] [log] [blame]
Matthias Fuchs99d8b232009-07-22 13:56:21 +02001#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Matthias Fuchs99d8b232009-07-22 13:56:21 +02006#
7
8include $(TOPDIR)/config.mk
Matthias Fuchscfab2ae2009-09-04 10:37:04 +02009ifneq ($(OBJTREE),$(SRCTREE))
10$(shell mkdir -p $(obj)../common)
11endif
Matthias Fuchs99d8b232009-07-22 13:56:21 +020012
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
Matthias Fuchs99d8b232009-07-22 13:56:21 +020014
15COBJS-y = $(BOARD).o
Matthias Fuchs99d8b232009-07-22 13:56:21 +020016COBJS-$(CONFIG_CMD_CHIP_CONFIG) += chip_config.o
Matthias Fuchscfab2ae2009-09-04 10:37:04 +020017COBJS-y += ../common/cmd_loadpci.o
Matthias Fuchs99d8b232009-07-22 13:56:21 +020018
19COBJS := $(COBJS-y)
20SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
21OBJS := $(addprefix $(obj),$(COBJS))
22SOBJS := $(addprefix $(obj),$(SOBJS))
23
24$(LIB): $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010025 $(call cmd_link_o_target, $(OBJS))
Matthias Fuchs99d8b232009-07-22 13:56:21 +020026
Matthias Fuchs99d8b232009-07-22 13:56:21 +020027#########################################################################
28
29# defines $(obj).depend target
30include $(SRCTREE)/rules.mk
31
32sinclude $(obj).depend
33
34#########################################################################