Makefile 623 B

12345678910111213141516171819202122232425262728293031
  1. #
  2. # (C) Copyright 2010,2011 Nvidia Corporation.
  3. #
  4. # (C) Copyright 2000-2008
  5. # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  6. #
  7. # SPDX-License-Identifier: GPL-2.0+
  8. #
  9. include $(TOPDIR)/config.mk
  10. LIB = $(obj)lib$(SOC).o
  11. COBJS-y += cpu.o
  12. SRCS := $(COBJS-y:.o=.c)
  13. OBJS := $(addprefix $(obj),$(COBJS-y))
  14. all: $(obj).depend $(LIB)
  15. $(LIB): $(OBJS)
  16. $(call cmd_link_o_target, $(OBJS))
  17. #########################################################################
  18. # defines $(obj).depend target
  19. include $(SRCTREE)/rules.mk
  20. sinclude $(obj).depend
  21. #########################################################################