blob: 6215cafe25335a01086653c4e850e16275449e62 [file] [log] [blame]
Simon Glasscb934812011-11-05 04:46:49 +00001# Copyright (c) 2011 The Chromium OS Authors.
Wolfgang Denk1a459662013-07-08 09:37:19 +02002# SPDX-License-Identifier: GPL-2.0+
Simon Glasscb934812011-11-05 04:46:49 +00003
4include $(TOPDIR)/config.mk
5
6ifneq ($(OBJTREE),$(SRCTREE))
7$(shell mkdir -p $(obj)board/$(VENDOR)/common)
8endif
9
10LIB = $(obj)lib$(VENDOR).o
11
Marc Dietrich73286d82012-10-03 04:26:28 +000012include common.mk
Simon Glasscb934812011-11-05 04:46:49 +000013
14COBJS := $(COBJS-y)
15SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
16OBJS := $(addprefix $(obj),$(COBJS))
17SOBJS := $(addprefix $(obj),$(SOBJS))
18
19all: $(LIB)
20
21$(LIB): $(obj).depend $(OBJS) $(SOBJS)
22 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
23
24#########################################################################
25# This is for $(obj).depend target
26include $(SRCTREE)/rules.mk
27
28sinclude $(obj).depend
29
30#########################################################################