Makefile.mk 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. BOOT_TARGET_O=
  2. include $(BUILD_DIR)/compile/$(CONFIG_CHIP)/common.inc
  3. include $(SDK_BOOT_DIR)/Base/Makefile.mk
  4. include $(SDK_BOOT_DIR)/Chip/$(CONFIG_CHIP)/Makefile.mk
  5. include $(SDK_BOOT_DIR)/Common/Makefile.mk
  6. include $(SDK_BOOT_DIR)/Mt/Makefile.mk
  7. VPATH = $(SDK_BOOT_DIR)/Base
  8. VPATH += $(SDK_BOOT_DIR)/Chip/$(CONFIG_CHIP)
  9. VPATH += $(SDK_BOOT_DIR)/Chip/$(CONFIG_CHIP)/ddr_init
  10. VPATH += $(SDK_BOOT_DIR)/Mt
  11. VPATH += $(SDK_BOOT_DIR)/Common
  12. INCLUDES = -I$(SDK_BOOT_DIR)/../Driver/Arch/$(CONFIG_CHIP)
  13. INCLUDES += -I$(SDK_BOOT_DIR)/../Driver/Arch/$(CONFIG_CHIP)/regs
  14. INCLUDES += -I$(SDK_BOOT_DIR)/Chip/$(CONFIG_CHIP)/ddr_init
  15. INCLUDES += -I$(SDK_BOOT_DIR)/Base
  16. INCLUDES += -I$(SDK_BOOT_DIR)/Common
  17. INCLUDES += -I$(ROOT_DIR)/user/$(CONFIG_VENDOR)/$(CONFIG_PROJECT)/System
  18. BOOT_LIB=$(BUILD_OUT_IMG_DIR)/libboot.a
  19. release:$(BOOT_LIB)
  20. debug:$(BOOT_LIB)
  21. BOOT_NO_DIR_O = $(BOOT_TARGET_O)
  22. BOOT_WITH_DIR_O= $(addprefix $(BUILD_OUT_OBJ_DIR)/,$(BOOT_NO_DIR_O))
  23. $(BOOT_LIB):$(BOOT_NO_DIR_O)
  24. $(HEADER)$(AR) qc $@ $(BOOT_WITH_DIR_O)
  25. $(HEADER)$(RANLIB) $@