blob: 0cbc0d0a907945575fbf82c17b2f9299917e34dc [file] [log] [blame]
Joe Hamman8ac27322007-08-09 15:10:53 -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+
Joe Hamman8ac27322007-08-09 15:10:53 -05006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Joe Hamman8ac27322007-08-09 15:10:53 -050011
Kumar Gala9bd4e592008-08-26 15:01:37 -050012COBJS-y += $(BOARD).o
13COBJS-y += law.o
14COBJS-$(CONFIG_FSL_DDR2) += ddr.o
Joe Hamman8ac27322007-08-09 15:10:53 -050015
Kumar Gala9bd4e592008-08-26 15:01:37 -050016SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
17OBJS := $(addprefix $(obj),$(COBJS-y))
Joe Hamman8ac27322007-08-09 15:10:53 -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))
Joe Hamman8ac27322007-08-09 15:10:53 -050022
Joe Hamman8ac27322007-08-09 15:10:53 -050023#########################################################################
24
25# defines $(obj).depend target
26include $(SRCTREE)/rules.mk
27
28sinclude ($obj).depend
29
30#########################################################################