blob: 46e412b9236b3cbe4ab29007a1ee1110c03b4426 [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
Jon Loeliger8b625112008-03-18 11:12:44 -050012COBJS-y += $(BOARD).o
13COBJS-y += ddr.o
14COBJS-y += law.o
15COBJS-y += tlb.o
wdenk42d1f032003-10-15 23:53:47 +000016
Jon Loeliger8b625112008-03-18 11:12:44 -050017SRCS := $(SOBJS-y:.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#########################################################################