Makefile 727 B

1234567891011121314151617181920212223242526272829303132
  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.o
  10. ifneq ($(CPU),mpc83xx)
  11. COBJS-y += cpu.o
  12. endif
  13. COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
  14. COBJS-$(CONFIG_FSL_IFC) += fsl_ifc.o
  15. COBJS-$(CONFIG_FSL_LBC) += fsl_lbc.o
  16. COBJS-$(CONFIG_SYS_SRIO) += srio.o
  17. SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
  18. OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
  19. all: $(obj).depend $(LIB)
  20. $(LIB): $(OBJS)
  21. $(call cmd_link_o_target, $(OBJS))
  22. include $(SRCTREE)/rules.mk
  23. sinclude $(obj).depend