blob: 009cceb5afc7d0cb95de9fad0555d2a57802496d [file] [log] [blame]
Kumar Gala129ba612008-08-12 11:13:08 -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+
Kumar Gala129ba612008-08-12 11:13:08 -05007#
8
9include $(TOPDIR)/config.mk
10
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010011LIB = $(obj)lib$(BOARD).o
Kumar Gala129ba612008-08-12 11:13:08 -050012
13COBJS-y += $(BOARD).o
14COBJS-y += ddr.o
15COBJS-y += law.o
16COBJS-y += tlb.o
17
18SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS-y))
20SOBJS := $(addprefix $(obj),$(SOBJS))
21
22$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010023 $(call cmd_link_o_target, $(OBJS))
Kumar Gala129ba612008-08-12 11:13:08 -050024
Kumar Gala129ba612008-08-12 11:13:08 -050025#########################################################################
26
27# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
29
30sinclude $(obj).depend
31
32#########################################################################