Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #
  2. # Makefile
  3. #
  4. # Copyright (C) 2013 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. COBJS += evm.o
  22. SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
  23. OBJS := $(addprefix $(obj),$(COBJS))
  24. SOBJS := $(addprefix $(obj),$(SOBJS))
  25. $(LIB): $(obj).depend $(OBJS) $(SOBJS)
  26. $(call cmd_link_o_target, $(OBJS) $(SOBJS))
  27. clean:
  28. rm -f $(SOBJS) $(OBJS)
  29. distclean: clean
  30. rm -f $(LIB) core *.bak $(obj).depend
  31. #########################################################################
  32. # defines $(obj).depend target
  33. include $(SRCTREE)/rules.mk
  34. sinclude $(obj).depend
  35. #########################################################################