blob: 8593a8633edd43d309e11f479b6e1fa9c0404b8f [file] [log] [blame]
Andre Schwarz632a6dd2009-08-31 16:18:24 +02001#
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+
Andre Schwarz632a6dd2009-08-31 16:18:24 +02006#
7
8include $(TOPDIR)/config.mk
9
10ifneq ($(OBJTREE),$(SRCTREE))
11$(shell mkdir -p $(obj)board/$(VENDOR)/common)
12endif
13
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010014LIB = $(obj)lib$(VENDOR).o
Andre Schwarz632a6dd2009-08-31 16:18:24 +020015
16COBJS-y = mv_common.o
17
18SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS-y))
20SOBJS := $(addprefix $(obj),$(SOBJS))
21
22$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010023 $(call cmd_link_o_target, $(OBJS))
Andre Schwarz632a6dd2009-08-31 16:18:24 +020024
Andre Schwarz632a6dd2009-08-31 16:18:24 +020025#########################################################################
26
27# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
29
30sinclude $(obj).depend
31
32#########################################################################