blob: 073a7838d1d4f3a852a0a9cfa1761a08c718bb22 [file] [log] [blame]
Heiko Schocher3f8dcb52008-11-20 09:57:47 +01001#
2# (C) Copyright 2006
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 Schocher3f8dcb52008-11-20 09:57:47 +01006#
7
8include $(TOPDIR)/config.mk
Heiko Schocherd19a6ec2008-11-21 08:29:40 +01009ifneq ($(OBJTREE),$(SRCTREE))
10$(shell mkdir -p $(obj)../common)
11endif
Heiko Schocher3f8dcb52008-11-20 09:57:47 +010012
Sebastien Carliera8d426f2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
Heiko Schocher3f8dcb52008-11-20 09:57:47 +010014
Holger Brunck015a60f2011-09-14 10:54:12 +020015COBJS += $(BOARD).o ../common/common.o ../common/ivm.o $(BOARD)_i2c.o
Heiko Schocher3f8dcb52008-11-20 09:57:47 +010016
Heiko Schocher3f8dcb52008-11-20 09:57:47 +010017SRCS := $(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 Schocher3f8dcb52008-11-20 09:57:47 +010023
Heiko Schocher3f8dcb52008-11-20 09:57:47 +010024#########################################################################
25
26# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
28
29sinclude $(obj).depend
30
31#########################################################################