Makefile 864 B

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