]>
Commit | Line | Data |
---|---|---|
566c9c16 VK |
1 | # |
2 | # (C) Copyright 2006 | |
3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. | |
4 | # | |
1a459660 | 5 | # SPDX-License-Identifier: GPL-2.0+ |
566c9c16 VK |
6 | # |
7 | ||
8 | include $(TOPDIR)/config.mk | |
9 | ||
10 | ifneq ($(OBJTREE),$(SRCTREE)) | |
11 | $(shell mkdir -p $(obj)board/$(VENDOR)/common) | |
12 | endif | |
13 | ||
6d8962e8 | 14 | LIB = $(obj)lib$(VENDOR).o |
566c9c16 | 15 | |
d014e033 | 16 | ifndef CONFIG_SPL_BUILD |
566c9c16 VK |
17 | COBJS := spr_misc.o |
18 | SOBJS := spr_lowlevel_init.o | |
d014e033 | 19 | endif |
566c9c16 VK |
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) | |
6d8962e8 | 26 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
566c9c16 | 27 | |
566c9c16 VK |
28 | ######################################################################### |
29 | # This is for $(obj).depend target | |
30 | include $(SRCTREE)/rules.mk | |
31 | ||
32 | sinclude $(obj).depend | |
33 | ||
34 | ######################################################################### |