blob: 200991458839b53b2932e6af7e9192db055490c7 [file] [log] [blame]
Jon Loeliger3dd2db52007-10-16 13:54:01 -05001# Copyright 2007 Freescale Semiconductor, Inc.
2#
Wolfgang Denk1a459662013-07-08 09:37:19 +02003# SPDX-License-Identifier: GPL-2.0+
Jon Loeliger3dd2db52007-10-16 13:54:01 -05004#
5
6include $(TOPDIR)/config.mk
7
Sebastien Carlier6d8962e2010-11-05 15:48:07 +01008LIB = $(obj)lib$(BOARD).o
Jon Loeliger3dd2db52007-10-16 13:54:01 -05009
Jon Loeliger39aa1a72008-08-26 15:01:36 -050010COBJS-y += $(BOARD).o
11COBJS-$(CONFIG_FSL_DDR2) += ddr.o
12COBJS-y += law.o
Jon Loeligerad8f8682008-01-15 13:42:41 -060013
Kumar Gala6ece2552010-05-21 04:17:48 -050014COBJS-$(CONFIG_FSL_DIU_FB) += mpc8610hpcd_diu.o
Jon Loeligerad8f8682008-01-15 13:42:41 -060015
Jon Loeliger39aa1a72008-08-26 15:01:36 -050016SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
17OBJS := $(addprefix $(obj),$(COBJS-y))
Jon Loeliger3dd2db52007-10-16 13:54:01 -050018SOBJS := $(addprefix $(obj),$(SOBJS))
19
20$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010021 $(call cmd_link_o_target, $(OBJS))
Jon Loeliger3dd2db52007-10-16 13:54:01 -050022
Jon Loeliger3dd2db52007-10-16 13:54:01 -050023#########################################################################
24
25# defines $(obj).depend target
26include $(SRCTREE)/rules.mk
27
28sinclude $(obj).depend
29
30#########################################################################