blob: 0c6e556a6d16005b47166c693d964eb10066ba63 [file] [log] [blame]
Kim Phillips5e918a92008-01-16 00:38:05 -06001#
2# (C) Copyright 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+
Kim Phillips5e918a92008-01-16 00:38:05 -06006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Kim Phillips5e918a92008-01-16 00:38:05 -060011
Kim Phillips9993e192009-07-18 18:42:13 -050012COBJS-y += $(BOARD).o
13COBJS-$(CONFIG_PCI) += pci.o
Kim Phillips5e918a92008-01-16 00:38:05 -060014
Kim Phillips9993e192009-07-18 18:42:13 -050015COBJS := $(COBJS-y)
Kim Phillips5e918a92008-01-16 00:38:05 -060016SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
17OBJS := $(addprefix $(obj),$(COBJS))
18SOBJS := $(addprefix $(obj),$(SOBJS))
19
20$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010021 $(call cmd_link_o_target, $(OBJS))
Kim Phillips5e918a92008-01-16 00:38:05 -060022
Kim Phillips5e918a92008-01-16 00:38:05 -060023#########################################################################
24
25# defines $(obj).depend target
26include $(SRCTREE)/rules.mk
27
28sinclude $(obj).depend
29
30#########################################################################