Makefile 978 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #
  2. # Copyright 2010 Freescale Semiconductor, Inc.
  3. #
  4. # This program is free software; you can redistribute it and/or modify it
  5. # under the terms of the GNU General Public License as published by the Free
  6. # Software Foundation; either version 2 of the License, or (at your option)
  7. # any later version.
  8. #
  9. include $(TOPDIR)/config.mk
  10. LIB = $(obj)lib$(BOARD).o
  11. # COBJS-y += $(BOARD).o
  12. COBJS-y += law.o
  13. COBJS-y += ddr.o
  14. COBJS-y += tlb.o
  15. COBJS-y += sdhc_boot.o
  16. COBJS-$(CONFIG_CONTROLCENTERD) += controlcenterd.o controlcenterd-id.o
  17. COBJS-$(CONFIG_FSL_DIU_FB) += diu.o
  18. SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
  19. OBJS := $(addprefix $(obj),$(COBJS-y))
  20. SOBJS := $(addprefix $(obj),$(SOBJS))
  21. $(LIB): $(OBJS) $(SOBJS)
  22. $(call cmd_link_o_target, $(OBJS))
  23. #########################################################################
  24. # defines $(obj).depend target
  25. include $(SRCTREE)/rules.mk
  26. sinclude $(obj).depend
  27. #########################################################################