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