]> git.ipfire.org Git - people/ms/u-boot.git/blob - board/nvidia/common/Makefile
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / board / nvidia / common / Makefile
1 # Copyright (c) 2011 The Chromium OS Authors.
2 # SPDX-License-Identifier: GPL-2.0+
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
12 include common.mk
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 #########################################################################