blob: bc428dff8aeb1f8ea917e3b00a965f4b31be949f [file] [log] [blame]
Heiko Schocher30de2ed2008-01-11 01:12:08 +01001#
2# (C) Copyright 2001-2007
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Heiko Schocher30de2ed2008-01-11 01:12:08 +01006#
7
8include $(TOPDIR)/config.mk
Heiko Schocherb95ab5c2008-10-15 09:32:25 +02009ifneq ($(OBJTREE),$(SRCTREE))
10$(shell mkdir -p $(obj)../common)
11endif
Heiko Schocher30de2ed2008-01-11 01:12:08 +010012
Sebastien Carliera8d426f2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
Heiko Schocher30de2ed2008-01-11 01:12:08 +010014
Holger Brunckbf20a882011-06-05 22:22:18 +000015COBJS := $(BOARD).o ../common/common.o ../common/ivm.o
Heiko Schocher30de2ed2008-01-11 01:12:08 +010016
17SRCS := $(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))
Heiko Schocher30de2ed2008-01-11 01:12:08 +010023
Heiko Schocher30de2ed2008-01-11 01:12:08 +010024#########################################################################
25
26# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
28
29sinclude $(obj).depend
30
31#########################################################################