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