Makefile 706 B

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