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