blob: ecffaa90335dc2caf0cbf865e715484898efe20a [file] [log] [blame]
Joe Hammanccefae42007-12-13 06:45:08 -06001#
2# (C) Copyright 2004-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Paul Gortmakerf2479532009-09-18 19:08:46 -04005# (C) Copyright 2007 Wind River Systems Inc <www.windriver.com>.
6# Added support for Wind River SBC8548 board
Joe Hammanccefae42007-12-13 06:45:08 -06007#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02008# SPDX-License-Identifier: GPL-2.0+
Joe Hammanccefae42007-12-13 06:45:08 -06009#
10
11include $(TOPDIR)/config.mk
12
Sebastien Carliera8d426f2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
Joe Hammanccefae42007-12-13 06:45:08 -060014
Kumar Galaf9902002008-08-26 23:15:28 -050015COBJS-y += $(BOARD).o
16COBJS-y += law.o
17COBJS-y += tlb.o
18COBJS-$(CONFIG_FSL_DDR2) += ddr.o
Joe Hammanccefae42007-12-13 06:45:08 -060019
Kumar Galaf9902002008-08-26 23:15:28 -050020SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
21OBJS := $(addprefix $(obj),$(COBJS-y))
Joe Hammanccefae42007-12-13 06:45:08 -060022SOBJS := $(addprefix $(obj),$(SOBJS))
23
24$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010025 $(call cmd_link_o_target, $(OBJS))
Joe Hammanccefae42007-12-13 06:45:08 -060026
Joe Hammanccefae42007-12-13 06:45:08 -060027#########################################################################
28
29# defines $(obj).depend target
30include $(SRCTREE)/rules.mk
31
32sinclude $(obj).depend
33
34#########################################################################