blob: 6e397eeff0d685da635351cc6feec5e19fb515a9 [file] [log] [blame]
Vipin KUMAR566c9c12010-01-15 19:15:48 +05301#
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+
Vipin KUMAR566c9c12010-01-15 19:15:48 +05306#
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
Vipin KUMAR566c9c12010-01-15 19:15:48 +053015
Stefan Roesed014e032012-01-05 11:23:45 +010016ifndef CONFIG_SPL_BUILD
Vipin KUMAR566c9c12010-01-15 19:15:48 +053017COBJS := spr_misc.o
18SOBJS := spr_lowlevel_init.o
Stefan Roesed014e032012-01-05 11:23:45 +010019endif
Vipin KUMAR566c9c12010-01-15 19:15:48 +053020
21SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
22OBJS := $(addprefix $(obj),$(COBJS))
23SOBJS := $(addprefix $(obj),$(SOBJS))
24
25$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010026 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
Vipin KUMAR566c9c12010-01-15 19:15:48 +053027
Vipin KUMAR566c9c12010-01-15 19:15:48 +053028#########################################################################
29# This is for $(obj).depend target
30include $(SRCTREE)/rules.mk
31
32sinclude $(obj).depend
33
34#########################################################################