Simon Glass | 92d8f1f | 2011-11-05 04:46:49 +0000 | [diff] [blame] | 1 | # Copyright (c) 2011 The Chromium OS Authors. |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 2 | # SPDX-License-Identifier: GPL-2.0+ |
Simon Glass | 92d8f1f | 2011-11-05 04:46:49 +0000 | [diff] [blame] | 3 | |
| 4 | include $(TOPDIR)/config.mk |
| 5 | |
| 6 | ifneq ($(OBJTREE),$(SRCTREE)) |
| 7 | $(shell mkdir -p $(obj)board/$(VENDOR)/common) |
| 8 | endif |
| 9 | |
| 10 | LIB = $(obj)lib$(VENDOR).o |
| 11 | |
Marc Dietrich | 611ca64 | 2012-10-03 04:26:28 +0000 | [diff] [blame] | 12 | include common.mk |
Simon Glass | 92d8f1f | 2011-11-05 04:46:49 +0000 | [diff] [blame] | 13 | |
| 14 | COBJS := $(COBJS-y) |
| 15 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 16 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 17 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 18 | |
| 19 | all: $(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 |
| 26 | include $(SRCTREE)/rules.mk |
| 27 | |
| 28 | sinclude $(obj).depend |
| 29 | |
| 30 | ######################################################################### |