xref: /rk3399_rockchip-uboot/common/spl/Makefile (revision d97b4ce8056ff01ca8f1a63a7c69fa5316d33830)
1#
2# (C) Copyright 2012
3# Texas Instruments Incorporated - http://www.ti.com/
4# Aneesh V <aneesh@ti.com>
5#
6# This file is released under the terms of GPL v2 and any later version.
7# See the file COPYING in the root directory of the source tree for details.
8#
9# Based on common/Makefile.
10#
11
12include $(TOPDIR)/config.mk
13
14LIB	= $(obj)libspl.o
15
16ifdef CONFIG_SPL_BUILD
17COBJS-$(CONFIG_SPL_FRAMEWORK) += spl.o
18COBJS-$(CONFIG_SPL_YMODEM_SUPPORT) += spl_ymodem.o
19COBJS-$(CONFIG_SPL_NAND_SUPPORT) += spl_nand.o
20endif
21
22COBJS	:= $(sort $(COBJS-y))
23SRCS	:= $(COBJS:.o=.c)
24OBJS	:= $(addprefix $(obj),$(COBJS-y))
25
26all:	$(obj).depend $(LIB)
27
28$(LIB):	$(OBJS)
29	$(call cmd_link_o_target, $(OBJS))
30
31#########################################################################
32
33# defines $(obj).depend target
34include $(SRCTREE)/rules.mk
35
36sinclude $(obj).depend
37
38#########################################################################
39