blob: 0cbc0d0a907945575fbf82c17b2f9299917e34dc [file] [log] [blame]
Joe Hammane0bdea32007-08-09 15:10:53 -05001#
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+
Joe Hammane0bdea32007-08-09 15:10:53 -05006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Joe Hammane0bdea32007-08-09 15:10:53 -050011
Kumar Galaa7adfe32008-08-26 15:01:37 -050012COBJS-y += $(BOARD).o
13COBJS-y += law.o
14COBJS-$(CONFIG_FSL_DDR2) += ddr.o
Joe Hammane0bdea32007-08-09 15:10:53 -050015
Kumar Galaa7adfe32008-08-26 15:01:37 -050016SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
17OBJS := $(addprefix $(obj),$(COBJS-y))
Joe Hammane0bdea32007-08-09 15:10:53 -050018SOBJS := $(addprefix $(obj),$(SOBJS))
19
20$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010021 $(call cmd_link_o_target, $(OBJS))
Joe Hammane0bdea32007-08-09 15:10:53 -050022
Joe Hammane0bdea32007-08-09 15:10:53 -050023#########################################################################
24
25# defines $(obj).depend target
26include $(SRCTREE)/rules.mk
27
28sinclude ($obj).depend
29
30#########################################################################