Makefile 1.0 KB

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