blob: 0cbc0d0a907945575fbf82c17b2f9299917e34dc [file] [log] [blame]
Jon Loeliger5c8aa972006-04-26 17:58:56 -05001#
2# (C) Copyright 2001
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Jon Loeliger5c8aa972006-04-26 17:58:56 -05006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Jon Loeliger5c8aa972006-04-26 17:58:56 -050011
Kumar Galacad506c2008-08-26 15:01:35 -050012COBJS-y += $(BOARD).o
13COBJS-y += law.o
14COBJS-$(CONFIG_FSL_DDR2) += ddr.o
Haiying Wang57b6e9c2007-01-22 12:37:30 -060015
Kumar Galacad506c2008-08-26 15:01:35 -050016SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
17OBJS := $(addprefix $(obj),$(COBJS-y))
Jon Loeligerfdfb4ed2006-09-19 09:34:10 -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 Loeliger5c8aa972006-04-26 17:58:56 -050022
Jon Loeliger5c8aa972006-04-26 17:58:56 -050023#########################################################################
24
Jon Loeligerfdfb4ed2006-09-19 09:34:10 -050025# defines $(obj).depend target
26include $(SRCTREE)/rules.mk
27
28sinclude ($obj).depend
Jon Loeliger5c8aa972006-04-26 17:58:56 -050029
30#########################################################################