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