Makefile 946 B

12345678910111213141516171819202122232425262728293031323334
  1. #
  2. # See file CREDITS for list of people who contributed to this
  3. # project.
  4. #
  5. # This program is free software; you can redistribute it and/or
  6. # modify it under the terms of the GNU General Public License
  7. # version 2 as published by the Free Software Foundation.
  8. #
  9. # This program is distributed in the hope that it will be useful, but
  10. # WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. include $(TOPDIR)/config.mk
  15. LIB = $(obj)lib$(BOARD).o
  16. COBJS := $(BOARD).o
  17. SRCS := $(COBJS:.o=.c)
  18. OBJS := $(addprefix $(obj),$(COBJS))
  19. $(LIB): $(obj).depend $(OBJS)
  20. $(call cmd_link_o_target, $(OBJS))
  21. #########################################################################
  22. # defines $(obj).depend target
  23. include $(SRCTREE)/rules.mk
  24. sinclude $(obj).depend
  25. #########################################################################