blob: 4698706bb9335fbd2c2c37fc0a4cb711af624e91 [file] [log] [blame]
wdenkf1d0ff42005-04-13 23:15:10 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2005-2006
wdenkf1d0ff42005-04-13 23:15:10 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenkf1d0ff42005-04-13 23:15:10 +00006#
7
8include $(TOPDIR)/config.mk
Marian Balakowiczd62379d2006-09-01 19:49:50 +02009#ifneq ($(OBJTREE),$(SRCTREE))
10#$(shell mkdir -p $(obj)../common)
11#endif
wdenkf1d0ff42005-04-13 23:15:10 +000012
Sebastien Carliera8d426f2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
wdenkf1d0ff42005-04-13 23:15:10 +000014
Marian Balakowiczd62379d2006-09-01 19:49:50 +020015COBJS := $(BOARD).o
wdenkf1d0ff42005-04-13 23:15:10 +000016#../common/flash.o ../common/vpd.o ../common/am79c874.o
17
Marian Balakowiczd62379d2006-09-01 19:49:50 +020018SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS))
20SOBJS := $(addprefix $(obj),$(SOBJS))
21
22$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010023 $(call cmd_link_o_target, $(OBJS))
wdenkf1d0ff42005-04-13 23:15:10 +000024
wdenkf1d0ff42005-04-13 23:15:10 +000025#########################################################################
26
Marian Balakowiczd62379d2006-09-01 19:49:50 +020027# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
wdenkf1d0ff42005-04-13 23:15:10 +000029
Marian Balakowiczd62379d2006-09-01 19:49:50 +020030sinclude $(obj).depend
wdenkf1d0ff42005-04-13 23:15:10 +000031
32#########################################################################