Makefile 1001 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. include $(TOPDIR)/config.mk
  12. LIB = $(obj)libspl.o
  13. ifdef CONFIG_SPL_BUILD
  14. COBJS-$(CONFIG_SPL_FRAMEWORK) += spl.o
  15. COBJS-$(CONFIG_SPL_NOR_SUPPORT) += spl_nor.o
  16. COBJS-$(CONFIG_SPL_YMODEM_SUPPORT) += spl_ymodem.o
  17. COBJS-$(CONFIG_SPL_NAND_SUPPORT) += spl_nand.o
  18. COBJS-$(CONFIG_SPL_NET_SUPPORT) += spl_net.o
  19. endif
  20. COBJS := $(sort $(COBJS-y))
  21. SRCS := $(COBJS:.o=.c)
  22. OBJS := $(addprefix $(obj),$(COBJS-y))
  23. all: $(obj).depend $(LIB)
  24. $(LIB): $(OBJS)
  25. $(call cmd_link_o_target, $(OBJS))
  26. #########################################################################
  27. # defines $(obj).depend target
  28. include $(SRCTREE)/rules.mk
  29. sinclude $(obj).depend
  30. #########################################################################