Makefile 956 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. endif
  19. COBJS := $(sort $(COBJS-y))
  20. SRCS := $(COBJS:.o=.c)
  21. OBJS := $(addprefix $(obj),$(COBJS-y))
  22. all: $(obj).depend $(LIB)
  23. $(LIB): $(OBJS)
  24. $(call cmd_link_o_target, $(OBJS))
  25. #########################################################################
  26. # defines $(obj).depend target
  27. include $(SRCTREE)/rules.mk
  28. sinclude $(obj).depend
  29. #########################################################################