Makefile 1.6 KB

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