Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #######################################################################
  2. #
  3. # Copyright (C) 2000, 2001, 2002, 2003
  4. # The LEOX team <team@leox.org>, http://www.leox.org
  5. #
  6. # (C) Copyright 2006
  7. # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  8. #
  9. # LEOX.org is about the development of free hardware and software resources
  10. # for system on chip.
  11. #
  12. # Description: U-Boot port on the LEOX's ELPT860 CPU board
  13. # ~~~~~~~~~~~
  14. #
  15. #######################################################################
  16. #
  17. # This program is free software; you can redistribute it and/or
  18. # modify it under the terms of the GNU General Public License as
  19. # published by the Free Software Foundation; either version 2 of
  20. # the License, or (at your option) any later version.
  21. #
  22. # This program is distributed in the hope that it will be useful,
  23. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  24. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  25. # GNU General Public License for more details.
  26. #
  27. # You should have received a copy of the GNU General Public License
  28. # along with this program; if not, write to the Free Software
  29. # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  30. # MA 02111-1307 USA
  31. #
  32. #######################################################################
  33. include $(TOPDIR)/config.mk
  34. LIB = $(obj)lib$(BOARD).a
  35. COBJS = $(BOARD).o flash.o
  36. SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
  37. OBJS := $(addprefix $(obj),$(COBJS))
  38. SOBJS := $(addprefix $(obj),$(SOBJS))
  39. $(LIB): $(obj).depend $(OBJS)
  40. $(AR) crv $@ $(OBJS)
  41. #########################################################################
  42. # defines $(obj).depend target
  43. include $(SRCTREE)/rules.mk
  44. sinclude $(obj).depend
  45. #########################################################################