Makefile 891 B

12345678910111213141516171819202122232425262728293031323334
  1. #
  2. # (C) Copyright 2009 Wolfgang Denk <wd@denx.de>
  3. #
  4. # See file CREDITS for list of people who contributed to this
  5. # project.
  6. #
  7. # This program is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU General Public License as
  9. # published by the Free Software Foundation; either version 2 of
  10. # the License, or (at your option) any later version.
  11. #
  12. include $(TOPDIR)/config.mk
  13. LIB = $(obj)lib$(BOARD).o
  14. COBJS-y := $(BOARD).o
  15. COBJS := $(COBJS-y)
  16. SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
  17. OBJS := $(addprefix $(obj),$(COBJS))
  18. SOBJS := $(addprefix $(obj),$(SOBJS))
  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. #########################################################################