blob: 4f524b7b6295c7712709f7498c3dcfe93e71e6d3 [file] [log] [blame]
Jon Loeliger77a4f6e2005-07-25 14:05:07 -05001#
2# Copyright 2004 Freescale Semiconductor.
Marian Balakowiczd62379d2006-09-01 19:49:50 +02003# (C) Copyright 2001-2006
Jon Loeliger77a4f6e2005-07-25 14:05:07 -05004# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02006# SPDX-License-Identifier: GPL-2.0+
Jon Loeliger77a4f6e2005-07-25 14:05:07 -05007#
8
9include $(TOPDIR)/config.mk
10
Sebastien Carliera8d426f2010-11-05 15:48:07 +010011LIB = $(obj)lib$(BOARD).o
Jon Loeliger77a4f6e2005-07-25 14:05:07 -050012
Jon Loeliger6bcdb402008-03-19 15:02:07 -050013COBJS-y += $(BOARD).o
Jon Loeligerc378bae2008-03-18 13:51:06 -050014COBJS-y += ddr.o
Jon Loeliger6bcdb402008-03-19 15:02:07 -050015COBJS-y += law.o
16COBJS-y += tlb.o
Jon Loeliger77a4f6e2005-07-25 14:05:07 -050017
Jon Loeliger6bcdb402008-03-19 15:02:07 -050018SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS-y))
20SOBJS := $(addprefix $(obj),$(SOBJS-y))
Marian Balakowiczd62379d2006-09-01 19:49:50 +020021
22$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010023 $(call cmd_link_o_target, $(OBJS))
Jon Loeliger77a4f6e2005-07-25 14:05:07 -050024
Jon Loeliger77a4f6e2005-07-25 14:05:07 -050025#########################################################################
26
Marian Balakowiczd62379d2006-09-01 19:49:50 +020027# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
Jon Loeliger77a4f6e2005-07-25 14:05:07 -050029
Marian Balakowiczd62379d2006-09-01 19:49:50 +020030sinclude $(obj).depend
Jon Loeliger77a4f6e2005-07-25 14:05:07 -050031
32#########################################################################