Makefile 909 B

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