blob: 6e397eeff0d685da635351cc6feec5e19fb515a9 [file] [log] [blame]
Vipin KUMAR7cc4c462010-01-15 19:15:48 +05301#
2# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Vipin KUMAR7cc4c462010-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 Carliera8d426f2010-11-05 15:48:07 +010014LIB = $(obj)lib$(VENDOR).o
Vipin KUMAR7cc4c462010-01-15 19:15:48 +053015
Stefan Roese7a2e1ca2012-01-05 11:23:45 +010016ifndef CONFIG_SPL_BUILD
Vipin KUMAR7cc4c462010-01-15 19:15:48 +053017COBJS := spr_misc.o
18SOBJS := spr_lowlevel_init.o
Stefan Roese7a2e1ca2012-01-05 11:23:45 +010019endif
Vipin KUMAR7cc4c462010-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 Carliera8d426f2010-11-05 15:48:07 +010026 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
Vipin KUMAR7cc4c462010-01-15 19:15:48 +053027
Vipin KUMAR7cc4c462010-01-15 19:15:48 +053028#########################################################################
29# This is for $(obj).depend target
30include $(SRCTREE)/rules.mk
31
32sinclude $(obj).depend
33
34#########################################################################