Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. COBJS := evm.o mux.o
  19. SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
  20. OBJS := $(addprefix $(obj),$(COBJS))
  21. SOBJS := $(addprefix $(obj),$(SOBJS))
  22. $(LIB): $(obj).depend $(OBJS) $(SOBJS)
  23. $(call cmd_link_o_target, $(OBJS) $(SOBJS))
  24. clean:
  25. rm -f $(SOBJS) $(OBJS)
  26. distclean: clean
  27. rm -f $(LIB) core *.bak $(obj).depend
  28. #########################################################################
  29. # defines $(obj).depend target
  30. include $(SRCTREE)/rules.mk
  31. sinclude $(obj).depend
  32. #########################################################################