Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #
  2. # Cirrus Logic EP93xx CPU-specific Makefile
  3. #
  4. # Copyright (C) 2009 Matthias Kaehlcke <matthias@kaehlcke.net>
  5. #
  6. # Copyright (C) 2004, 2005
  7. # Cory T. Tusar, Videon Central, Inc., <ctusar@videon-central.com>
  8. #
  9. # Copyright (C) 2006
  10. # Dominic Rath <Dominic.Rath@gmx.de>
  11. #
  12. # Based on an original Makefile, which is
  13. #
  14. # (C) Copyright 2000, 2001, 2002
  15. # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  16. #
  17. # See file CREDITS for list of people who contributed to this project.
  18. #
  19. # This program is free software; you can redistribute it and/or modify
  20. # it under the terms of the GNU General Public License as published by
  21. # the Free Software Foundation; either version 2 of the License, or
  22. # (at your option) any later version.
  23. #
  24. # This program is distributed in the hope that it will be useful, but
  25. # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  26. # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  27. # for more details.
  28. #
  29. # You should have received a copy of the GNU General Public License along
  30. # with this program; if not, write to the Free Software Foundation, Inc.,
  31. # 675 Mass Ave, Cambridge, MA 02139, USA.
  32. #
  33. include $(TOPDIR)/config.mk
  34. LIB = $(obj)lib$(SOC).o
  35. COBJS = cpu.o led.o speed.o timer.o
  36. SOBJS = lowlevel_init.o
  37. SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
  38. OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
  39. all: $(obj).depend $(LIB)
  40. $(LIB): $(OBJS)
  41. $(call cmd_link_o_target, $(OBJS))
  42. #########################################################################
  43. # defines $(obj).depend target
  44. include $(SRCTREE)/rules.mk
  45. sinclude $(obj).depend
  46. #########################################################################