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