blob: 8757a71a826902bb72b92aa5567c78f02c09af60 [file] [log] [blame]
Dan Malek35171dc2007-01-05 09:15:34 +01001#
2# (C) Copyright 2001
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Dan Malek35171dc2007-01-05 09:15:34 +01006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Dan Malek35171dc2007-01-05 09:15:34 +010011
Kumar Gala0e7927d2008-08-27 01:04:07 -050012COBJS-y += $(BOARD).o
13COBJS-y += law.o
14COBJS-y += tlb.o
15COBJS-$(CONFIG_FSL_DDR1) += ddr.o
Dan Malek35171dc2007-01-05 09:15:34 +010016
Kumar Gala0e7927d2008-08-27 01:04:07 -050017SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
18OBJS := $(addprefix $(obj),$(COBJS-y))
Wolfgang Denk2c6fb192007-04-24 14:37:49 +020019SOBJS := $(addprefix $(obj),$(SOBJS))
20
21$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010022 $(call cmd_link_o_target, $(OBJS))
Dan Malek35171dc2007-01-05 09:15:34 +010023
Dan Malek35171dc2007-01-05 09:15:34 +010024#########################################################################
25
Wolfgang Denk2c6fb192007-04-24 14:37:49 +020026# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
Dan Malek35171dc2007-01-05 09:15:34 +010028
Wolfgang Denk2c6fb192007-04-24 14:37:49 +020029sinclude $(obj).depend
Dan Malek35171dc2007-01-05 09:15:34 +010030
31#########################################################################