blob: 7cf01ad72d05592884ea9fdf8b420d69e809fcdd [file] [log] [blame]
Tom Rini47f7bca2012-08-13 12:03:19 -07001#
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
Stefan Roese33d34642012-08-27 12:50:59 +020018COBJS-$(CONFIG_SPL_NOR_SUPPORT) += spl_nor.o
Tom Rini47f7bca2012-08-13 12:03:19 -070019COBJS-$(CONFIG_SPL_YMODEM_SUPPORT) += spl_ymodem.o
Tom Rinid97b4ce2012-08-14 14:33:02 -070020COBJS-$(CONFIG_SPL_NAND_SUPPORT) += spl_nand.o
Tom Rini47f7bca2012-08-13 12:03:19 -070021endif
22
23COBJS := $(sort $(COBJS-y))
24SRCS := $(COBJS:.o=.c)
25OBJS := $(addprefix $(obj),$(COBJS-y))
26
27all: $(obj).depend $(LIB)
28
29$(LIB): $(OBJS)
30 $(call cmd_link_o_target, $(OBJS))
31
32#########################################################################
33
34# defines $(obj).depend target
35include $(SRCTREE)/rules.mk
36
37sinclude $(obj).depend
38
39#########################################################################