blob: a45f0ef26ad9071355e6b386370133a4329b5a6c [file] [log] [blame]
wdenkb666c8f2003-03-06 00:58:30 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenkb666c8f2003-03-06 00:58: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+
wdenkb666c8f2003-03-06 00:58:30 +00006#
7
8include $(TOPDIR)/config.mk
Marian Balakowiczd62379d2006-09-01 19:49:50 +02009ifneq ($(OBJTREE),$(SRCTREE))
10$(shell mkdir -p $(obj)../common)
11endif
wdenkb666c8f2003-03-06 00:58:30 +000012
Sebastien Carliera8d426f2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
wdenkb666c8f2003-03-06 00:58:30 +000014
Marian Balakowiczd62379d2006-09-01 19:49:50 +020015COBJS = $(BOARD).o ../common/flash.o ../common/vpd.o ../common/am79c874.o
wdenkb666c8f2003-03-06 00:58:30 +000016
Marian Balakowiczd62379d2006-09-01 19:49:50 +020017SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
18OBJS := $(addprefix $(obj),$(COBJS))
19SOBJS := $(addprefix $(obj),$(SOBJS))
20
21$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010022 $(call cmd_link_o_target, $(OBJS))
wdenkb666c8f2003-03-06 00:58:30 +000023
24#########################################################################
25
Marian Balakowiczd62379d2006-09-01 19:49:50 +020026# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
wdenkb666c8f2003-03-06 00:58:30 +000028
Marian Balakowiczd62379d2006-09-01 19:49:50 +020029sinclude $(obj).depend
wdenkb666c8f2003-03-06 00:58:30 +000030
31#########################################################################