blob: 0c6e556a6d16005b47166c693d964eb10066ba63 [file] [log] [blame]
Marian Balakowiczd7a3f722006-03-14 16:24:38 +01001#
2# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Marian Balakowiczd7a3f722006-03-14 16:24:38 +01006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Marian Balakowiczd7a3f722006-03-14 16:24:38 +010011
Kim Phillips57a2af32009-07-18 18:42:13 -050012COBJS-y += $(BOARD).o
13COBJS-$(CONFIG_PCI) += pci.o
Marian Balakowiczd7a3f722006-03-14 16:24:38 +010014
Kim Phillips57a2af32009-07-18 18:42:13 -050015COBJS := $(COBJS-y)
Marian Balakowiczd62379d2006-09-01 19:49:50 +020016SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
17OBJS := $(addprefix $(obj),$(COBJS))
18SOBJS := $(addprefix $(obj),$(SOBJS))
19
20$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010021 $(call cmd_link_o_target, $(OBJS))
Marian Balakowiczd7a3f722006-03-14 16:24:38 +010022
Marian Balakowiczd7a3f722006-03-14 16:24:38 +010023#########################################################################
24
Marian Balakowiczd62379d2006-09-01 19:49:50 +020025# defines $(obj).depend target
26include $(SRCTREE)/rules.mk
Marian Balakowiczd7a3f722006-03-14 16:24:38 +010027
Marian Balakowiczd62379d2006-09-01 19:49:50 +020028sinclude $(obj).depend
Marian Balakowiczd7a3f722006-03-14 16:24:38 +010029
30#########################################################################