blob: 68c18b95c7145092a35e477592f55616946bafd3 [file] [log] [blame]
wdenk5c952cf2004-10-10 21:27:30 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2001-2006
wdenk5c952cf2004-10-10 21:27:30 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk5c952cf2004-10-10 21:27:30 +00006#
7
8include $(TOPDIR)/config.mk
Marian Balakowiczf9328632006-09-01 19:49:50 +02009ifneq ($(OBJTREE),$(SRCTREE))
10$(shell mkdir -p $(obj)../common)
11endif
wdenk5c952cf2004-10-10 21:27:30 +000012
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
wdenk5c952cf2004-10-10 21:27:30 +000014
15COMOBJS := ../common/AMDLV065D.o
16
Marian Balakowiczf9328632006-09-01 19:49:50 +020017COBJS := $(BOARD).o $(COMOBJS)
wdenk5c952cf2004-10-10 21:27:30 +000018
Marian Balakowiczf9328632006-09-01 19:49:50 +020019SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
20OBJS := $(addprefix $(obj),$(COBJS))
21SOBJS := $(addprefix $(obj),$(SOBJS))
wdenk5c952cf2004-10-10 21:27:30 +000022
Marian Balakowiczf9328632006-09-01 19:49:50 +020023$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010024 $(call cmd_link_o_target, $(OBJS))
wdenk5c952cf2004-10-10 21:27:30 +000025
wdenk5c952cf2004-10-10 21:27:30 +000026#########################################################################
27
Marian Balakowiczf9328632006-09-01 19:49:50 +020028# defines $(obj).depend target
29include $(SRCTREE)/rules.mk
wdenk5c952cf2004-10-10 21:27:30 +000030
Marian Balakowiczf9328632006-09-01 19:49:50 +020031sinclude $(obj).depend
wdenk5c952cf2004-10-10 21:27:30 +000032
33#########################################################################