Makefile 681 B

12345678910111213141516171819202122232425262728293031
  1. #
  2. # Copyright 2009-2010 Freescale Semiconductor, Inc.
  3. #
  4. # This program is free software; you can redistribute it and/or
  5. # modify it under the terms of the GNU General Public License
  6. # Version 2 as published by the Free Software Foundation.
  7. #
  8. include $(TOPDIR)/config.mk
  9. LIB = $(obj)lib8xxx.a
  10. ifneq ($(CPU),mpc83xx)
  11. COBJS-y += cpu.o
  12. COBJS-$(CONFIG_PCI) += pci_cfg.o
  13. endif
  14. COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
  15. COBJS-$(CONFIG_FSL_LBC) += fsl_lbc.o
  16. SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
  17. OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
  18. all: $(obj).depend $(LIB)
  19. $(LIB): $(OBJS)
  20. $(AR) $(ARFLAGS) $@ $(OBJS)
  21. include $(SRCTREE)/rules.mk
  22. sinclude $(obj).depend