Vipin KUMAR | 566c9c1 | 2010-01-15 19:15:48 +0530 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2006 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Vipin KUMAR | 566c9c1 | 2010-01-15 19:15:48 +0530 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
| 10 | ifneq ($(OBJTREE),$(SRCTREE)) |
| 11 | $(shell mkdir -p $(obj)board/$(VENDOR)/common) |
| 12 | endif |
| 13 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 14 | LIB = $(obj)lib$(VENDOR).o |
Vipin KUMAR | 566c9c1 | 2010-01-15 19:15:48 +0530 | [diff] [blame] | 15 | |
Stefan Roese | d014e03 | 2012-01-05 11:23:45 +0100 | [diff] [blame] | 16 | ifndef CONFIG_SPL_BUILD |
Vipin KUMAR | 566c9c1 | 2010-01-15 19:15:48 +0530 | [diff] [blame] | 17 | COBJS := spr_misc.o |
| 18 | SOBJS := spr_lowlevel_init.o |
Stefan Roese | d014e03 | 2012-01-05 11:23:45 +0100 | [diff] [blame] | 19 | endif |
Vipin KUMAR | 566c9c1 | 2010-01-15 19:15:48 +0530 | [diff] [blame] | 20 | |
| 21 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 22 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 23 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 24 | |
| 25 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 26 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
Vipin KUMAR | 566c9c1 | 2010-01-15 19:15:48 +0530 | [diff] [blame] | 27 | |
Vipin KUMAR | 566c9c1 | 2010-01-15 19:15:48 +0530 | [diff] [blame] | 28 | ######################################################################### |
| 29 | # This is for $(obj).depend target |
| 30 | include $(SRCTREE)/rules.mk |
| 31 | |
| 32 | sinclude $(obj).depend |
| 33 | |
| 34 | ######################################################################### |