blob: 009cceb5afc7d0cb95de9fad0555d2a57802496d [file] [log] [blame]
Jon Loeliger25d83d72007-04-11 16:51:02 -05001#
2# Copyright 2007 Freescale Semiconductor, Inc.
3# (C) Copyright 2001-2006
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5#
Wolfgang Denk1a459662013-07-08 09:37:19 +02006# SPDX-License-Identifier: GPL-2.0+
Jon Loeliger25d83d72007-04-11 16:51:02 -05007#
8
9include $(TOPDIR)/config.mk
10
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010011LIB = $(obj)lib$(BOARD).o
Jon Loeliger25d83d72007-04-11 16:51:02 -050012
Kumar Gala1167a2f2008-08-26 08:02:30 -050013COBJS-y += $(BOARD).o
14COBJS-y += ddr.o
15COBJS-y += law.o
16COBJS-y += tlb.o
Jon Loeliger25d83d72007-04-11 16:51:02 -050017
Kumar Gala1167a2f2008-08-26 08:02:30 -050018SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS-y))
Jon Loeliger25d83d72007-04-11 16:51:02 -050020SOBJS := $(addprefix $(obj),$(SOBJS))
21
22$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010023 $(call cmd_link_o_target, $(OBJS))
Jon Loeliger25d83d72007-04-11 16:51:02 -050024
Jon Loeliger25d83d72007-04-11 16:51:02 -050025#########################################################################
26
27# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
29
30sinclude $(obj).depend
31
32#########################################################################