Makefile 762 B

1234567891011121314151617181920212223242526272829303132333435
  1. #
  2. # (C) Copyright 2000-2003
  3. # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. #
  5. # Copyright (C) 2012 Altera Corporation <www.altera.com>
  6. #
  7. # SPDX-License-Identifier: GPL-2.0+
  8. #
  9. include $(TOPDIR)/config.mk
  10. LIB = $(obj)lib$(SOC).o
  11. SOBJS := lowlevel_init.o
  12. COBJS-y := misc.o timer.o reset_manager.o
  13. COBJS-$(CONFIG_SPL_BUILD) += spl.o
  14. COBJS := $(COBJS-y)
  15. SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
  16. OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS))
  17. all: $(obj).depend $(LIB)
  18. $(LIB): $(OBJS)
  19. $(call cmd_link_o_target, $(OBJS))
  20. #########################################################################
  21. # defines $(obj).depend target
  22. include $(SRCTREE)/rules.mk
  23. sinclude $(obj).depend
  24. #########################################################################