Makefile 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. #
  2. # (C) Copyright 2000-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. # This program is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with this program; if not, write to the Free Software
  20. # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  21. # MA 02111-1307 USA
  22. #
  23. include $(TOPDIR)/config.mk
  24. LIB = $(obj)lib$(CPU).a
  25. START := resetvec.o
  26. START += start.o
  27. SOBJS := cache.o
  28. SOBJS += dcr.o
  29. SOBJS += kgdb.o
  30. COBJS := 40x_spd_sdram.o
  31. COBJS += 44x_spd_ddr.o
  32. COBJS += 44x_spd_ddr2.o
  33. ifdef CONFIG_PPC4xx_DDR_AUTOCALIBRATION
  34. COBJS += 4xx_ibm_ddr2_autocalib.o
  35. endif
  36. COBJS-$(CONFIG_PPC4xx_EMAC) += 4xx_enet.o
  37. COBJS += 4xx_pci.o
  38. COBJS += 4xx_pcie.o
  39. COBJS += bedbug_405.o
  40. COBJS += commproc.o
  41. COBJS += cpu.o
  42. COBJS += cpu_init.o
  43. COBJS += denali_data_eye.o
  44. COBJS += denali_spd_ddr2.o
  45. COBJS += ecc.o
  46. COBJS += fdt.o
  47. COBJS += i2c.o
  48. COBJS += interrupts.o
  49. COBJS += iop480_uart.o
  50. COBJS += ndfc.o
  51. COBJS += sdram.o
  52. COBJS += speed.o
  53. COBJS += tlb.o
  54. COBJS += traps.o
  55. COBJS += usb.o
  56. COBJS += usb_ohci.o
  57. COBJS += usbdev.o
  58. ifndef CONFIG_XILINX_440
  59. COBJS += 4xx_enet.o
  60. COBJS += 4xx_uart.o
  61. COBJS += gpio.o
  62. COBJS += miiphy.o
  63. COBJS += uic.o
  64. else
  65. COBJS += xilinx_irq.o
  66. endif
  67. SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
  68. OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
  69. START := $(addprefix $(obj),$(START))
  70. all: $(obj).depend $(START) $(LIB)
  71. $(LIB): $(OBJS)
  72. $(AR) $(ARFLAGS) $@ $(OBJS)
  73. #########################################################################
  74. # defines $(obj).depend target
  75. include $(SRCTREE)/rules.mk
  76. sinclude $(obj).depend
  77. #########################################################################