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