Makefile 696 B

1234567891011121314151617181920212223242526272829303132
  1. #
  2. # (C) Copyright 2000-2006
  3. # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. #
  5. # (C) Copyright 2011 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-y = soc.o clock.o
  12. COBJS-$(CONFIG_SECURE_BOOT) += hab.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. #########################################################################