blob: 9e3c891e17c0df97e607ec3e9957b8547a5792e9 [file] [log] [blame]
Timur Tabi054838e2006-10-31 18:44:42 -06001#
Kumar Gala6a6d9482009-07-28 21:49:52 -05002# Copyright (C) Freescale Semiconductor, Inc. 2006.
Timur Tabi054838e2006-10-31 18:44:42 -06003#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004# SPDX-License-Identifier: GPL-2.0+
Timur Tabi054838e2006-10-31 18:44:42 -06005#
6
7include $(TOPDIR)/config.mk
8
Sebastien Carliera8d426f2010-11-05 15:48:07 +01009LIB = $(obj)lib$(BOARD).o
Timur Tabi054838e2006-10-31 18:44:42 -060010
Kim Phillips57a2af32009-07-18 18:42:13 -050011COBJS-y += $(BOARD).o
12COBJS-$(CONFIG_PCI) += pci.o
Timur Tabi054838e2006-10-31 18:44:42 -060013
Kim Phillips57a2af32009-07-18 18:42:13 -050014COBJS := $(COBJS-y)
Timur Tabi054838e2006-10-31 18:44:42 -060015SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
16OBJS := $(addprefix $(obj),$(COBJS))
17SOBJS := $(addprefix $(obj),$(SOBJS))
18
19$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010020 $(call cmd_link_o_target, $(OBJS))
Timur Tabi054838e2006-10-31 18:44:42 -060021
Timur Tabi054838e2006-10-31 18:44:42 -060022#########################################################################
23
24include $(SRCTREE)/rules.mk
25
26sinclude $(obj).depend
27
28#########################################################################