Makefile 695 B

12345678910111213141516171819202122232425262728293031323334
  1. #
  2. # (C) Copyright 2000-2006
  3. # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. #
  5. # (C) Copyright 2008-2009 Freescale Semiconductor, Inc.
  6. #
  7. # SPDX-License-Identifier: GPL-2.0+
  8. #
  9. include $(TOPDIR)/config.mk
  10. LIB = $(obj)lib$(SOC).o
  11. COBJS += generic.o
  12. COBJS += timer.o
  13. COBJS += mx35_sdram.o
  14. SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
  15. OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
  16. all: $(obj).depend $(LIB)
  17. $(LIB): $(OBJS)
  18. $(call cmd_link_o_target, $(OBJS))
  19. #########################################################################
  20. # defines $(obj).depend target
  21. include $(SRCTREE)/rules.mk
  22. sinclude $(obj).depend
  23. #########################################################################