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