blob: 4f524b7b6295c7712709f7498c3dcfe93e71e6d3 [file] [log] [blame]
Jon Loeligerd9b94f22005-07-25 14:05:07 -05001#
2# Copyright 2004 Freescale Semiconductor.
Marian Balakowiczf9328632006-09-01 19:49:50 +02003# (C) Copyright 2001-2006
Jon Loeligerd9b94f22005-07-25 14:05:07 -05004# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5#
Wolfgang Denk1a459662013-07-08 09:37:19 +02006# SPDX-License-Identifier: GPL-2.0+
Jon Loeligerd9b94f22005-07-25 14:05:07 -05007#
8
9include $(TOPDIR)/config.mk
10
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010011LIB = $(obj)lib$(BOARD).o
Jon Loeligerd9b94f22005-07-25 14:05:07 -050012
Jon Loeliger25eedb22008-03-19 15:02:07 -050013COBJS-y += $(BOARD).o
Jon Loeligere31d2c12008-03-18 13:51:06 -050014COBJS-y += ddr.o
Jon Loeliger25eedb22008-03-19 15:02:07 -050015COBJS-y += law.o
16COBJS-y += tlb.o
Jon Loeligerd9b94f22005-07-25 14:05:07 -050017
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))
Jon Loeligerd9b94f22005-07-25 14:05:07 -050024
Jon Loeligerd9b94f22005-07-25 14:05:07 -050025#########################################################################
26
Marian Balakowiczf9328632006-09-01 19:49:50 +020027# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
Jon Loeligerd9b94f22005-07-25 14:05:07 -050029
Marian Balakowiczf9328632006-09-01 19:49:50 +020030sinclude $(obj).depend
Jon Loeligerd9b94f22005-07-25 14:05:07 -050031
32#########################################################################