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