blob: 073a7838d1d4f3a852a0a9cfa1761a08c718bb22 [file] [log] [blame]
Heiko Schocherde044362008-11-20 09:57:47 +01001#
2# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Heiko Schocherde044362008-11-20 09:57:47 +01006#
7
8include $(TOPDIR)/config.mk
Heiko Schocher210c8c02008-11-21 08:29:40 +01009ifneq ($(OBJTREE),$(SRCTREE))
10$(shell mkdir -p $(obj)../common)
11endif
Heiko Schocherde044362008-11-20 09:57:47 +010012
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
Heiko Schocherde044362008-11-20 09:57:47 +010014
Holger Bruncke792aff2011-09-14 10:54:12 +020015COBJS += $(BOARD).o ../common/common.o ../common/ivm.o $(BOARD)_i2c.o
Heiko Schocherde044362008-11-20 09:57:47 +010016
Heiko Schocherde044362008-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 Carlier6d8962e2010-11-05 15:48:07 +010022 $(call cmd_link_o_target, $(OBJS))
Heiko Schocherde044362008-11-20 09:57:47 +010023
Heiko Schocherde044362008-11-20 09:57:47 +010024#########################################################################
25
26# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
28
29sinclude $(obj).depend
30
31#########################################################################