blob: 4f524b7b6295c7712709f7498c3dcfe93e71e6d3 [file] [log] [blame]
wdenk0aeb8532004-10-10 21:21:55 +00001#
2# Copyright 2004 Freescale Semiconductor.
Marian Balakowiczd62379d2006-09-01 19:49:50 +02003# (C) Copyright 2001-2006
wdenk0aeb8532004-10-10 21:21:55 +00004# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02006# SPDX-License-Identifier: GPL-2.0+
wdenk0aeb8532004-10-10 21:21:55 +00007#
8
9include $(TOPDIR)/config.mk
10
Sebastien Carliera8d426f2010-11-05 15:48:07 +010011LIB = $(obj)lib$(BOARD).o
wdenk0aeb8532004-10-10 21:21:55 +000012
Jon Loeliger6bcdb402008-03-19 15:02:07 -050013COBJS-y += $(BOARD).o
Jon Loeliger081bc6b2008-03-17 15:48:18 -050014COBJS-y += ddr.o
Jon Loeliger6bcdb402008-03-19 15:02:07 -050015COBJS-y += law.o
16COBJS-y += tlb.o
wdenk0aeb8532004-10-10 21:21:55 +000017
Jon Loeliger6bcdb402008-03-19 15:02:07 -050018SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS-y))
20SOBJS := $(addprefix $(obj),$(SOBJS-y))
Marian Balakowiczd62379d2006-09-01 19:49:50 +020021
22$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010023 $(call cmd_link_o_target, $(OBJS))
wdenk0aeb8532004-10-10 21:21:55 +000024
wdenk0aeb8532004-10-10 21:21:55 +000025#########################################################################
26
Marian Balakowiczd62379d2006-09-01 19:49:50 +020027# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
wdenk0aeb8532004-10-10 21:21:55 +000029
Marian Balakowiczd62379d2006-09-01 19:49:50 +020030sinclude $(obj).depend
wdenk0aeb8532004-10-10 21:21:55 +000031
32#########################################################################