Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #
  2. # Makefile
  3. #
  4. # Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
  5. #
  6. # This program is free software; you can redistribute it and/or
  7. # modify it under the terms of the GNU General Public License as
  8. # published by the Free Software Foundation; either version 2 of
  9. # the License, or (at your option) any later version.
  10. #
  11. # This program is distributed "as is" WITHOUT ANY WARRANTY of any
  12. # kind, whether express or implied; without even the implied warranty
  13. # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. include $(TOPDIR)/config.mk
  17. LIB = $(obj)lib$(BOARD).o
  18. ifdef CONFIG_SPL_BUILD
  19. COBJS := mux.o
  20. endif
  21. SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
  22. OBJS := $(addprefix $(obj),$(COBJS))
  23. SOBJS := $(addprefix $(obj),$(SOBJS))
  24. $(LIB): $(obj).depend $(OBJS) $(SOBJS)
  25. $(call cmd_link_o_target, $(OBJS) $(SOBJS))
  26. clean:
  27. rm -f $(SOBJS) $(OBJS)
  28. distclean: clean
  29. rm -f $(LIB) core *.bak $(obj).depend
  30. #########################################################################
  31. # defines $(obj).depend target
  32. include $(SRCTREE)/rules.mk
  33. sinclude $(obj).depend
  34. #########################################################################