blob: 08dd14b64dba73f92134b386cc0ca77ac385d83d [file] [log] [blame]
wdenk42d1f032003-10-15 23:53:47 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2001-2006
wdenk42d1f032003-10-15 23:53:47 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk42d1f032003-10-15 23:53:47 +00006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
wdenk42d1f032003-10-15 23:53:47 +000011
Kumar Gala9617c8d2008-06-06 13:12:18 -050012COBJS-y += $(BOARD).o
13COBJS-y += ddr.o
14COBJS-y += law.o
15COBJS-y += tlb.o
wdenk42d1f032003-10-15 23:53:47 +000016
Kumar Gala9617c8d2008-06-06 13:12:18 -050017SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
18OBJS := $(addprefix $(obj),$(COBJS-y))
19SOBJS := $(addprefix $(obj),$(SOBJS-y))
Marian Balakowiczf9328632006-09-01 19:49:50 +020020
21$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010022 $(call cmd_link_o_target, $(OBJS))
wdenk42d1f032003-10-15 23:53:47 +000023
wdenk42d1f032003-10-15 23:53:47 +000024#########################################################################
25
Marian Balakowiczf9328632006-09-01 19:49:50 +020026# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
wdenk42d1f032003-10-15 23:53:47 +000028
Marian Balakowiczf9328632006-09-01 19:49:50 +020029sinclude $(obj).depend
wdenk42d1f032003-10-15 23:53:47 +000030
31#########################################################################