Makefile.mk 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. PQ_TARGET_O=
  2. BCON_LIB=$(BUILD_OUT_IMG_DIR)/libbcon.a
  3. include $(BUILD_DIR)/compile/$(CONFIG_CHIP)/common.inc
  4. VPATH += $(SDK_DRIVER_DIR)/BCON/cal/$(CONFIG_CHIP)/src
  5. VPATH += $(SDK_DRIVER_DIR)/BCON/drv/src
  6. INCLUDES += -I$(SDK_DRIVER_DIR)/Arch/$(CONFIG_CHIP)/
  7. INCLUDES += -I$(SDK_DRIVER_DIR)/Arch/$(CONFIG_CHIP)/regs/
  8. INCLUDES += -I$(SDK_DRIVER_DIR)/BCON/inc
  9. INCLUDES += -I$(SDK_DRIVER_DIR)/BCON/cal/ht7315/inc
  10. INCLUDES += -I$(SDK_DIR)/
  11. INCLUDES += -I$(SDK_COMMON_DIR)/
  12. INCLUDES += -I$(SDK_COMMON_DIR)/Event
  13. INCLUDES += -I$(SDK_COMMON_DIR)/Assert
  14. INCLUDES += -I$(SDK_COMMON_DIR)/Util/Utilities/inc
  15. INCLUDES += -I$(SDK_VOS_DIR)/inc
  16. INCLUDES += -I$(SDK_VOS_DIR)/risc/inc
  17. release:$(BCON_LIB)
  18. debug:$(BCON_LIB)
  19. BCON_DIR = $(SDK_DRIVER_DIR)/BCON
  20. VPATH += $(BCON_DIR)
  21. OBJ_BCON_C = $(wildcard $(BCON_DIR)/cal/$(CONFIG_CHIP)/src/*.c)
  22. OBJ_BCON_C += $(wildcard $(BCON_DIR)/drv/src/*.c)
  23. OBJ_BCON_C_NODIR = $(notdir $(OBJ_BCON_C))
  24. OBJ_BCON_C_O = $(OBJ_BCON_C_NODIR:%.c=%.o)
  25. BCON_TARGET_O += $(OBJ_BCON_C_O)
  26. BCON_NO_DIR_O = $(BCON_TARGET_O)
  27. BCON_WITH_DIR_O= $(addprefix $(BUILD_OUT_OBJ_DIR)/,$(BCON_NO_DIR_O))
  28. $(BCON_LIB):$(BCON_NO_DIR_O)
  29. $(HEADER)$(AR) qc $@ $(BCON_WITH_DIR_O)
  30. $(HEADER)$(RANLIB) $@