Makefile.mk 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. DISPCTRL_TARGET_O=
  2. DISPCTRL_LIB=$(BUILD_OUT_IMG_DIR)/libDispCtrl.a
  3. include $(BUILD_DIR)/compile/$(CONFIG_CHIP)/common.inc
  4. VPATH = $(SDK_DRIVER_DIR)/DisplayCtrl/cal/$(CONFIG_CHIP)/src
  5. VPATH += $(SDK_DRIVER_DIR)/DisplayCtrl/drv/$(CONFIG_CHIP)/src
  6. INCLUDES += -I$(SDK_DRIVER_DIR)/Arch/$(CONFIG_CHIP)/
  7. INCLUDES += -I$(SDK_DRIVER_DIR)/Arch/$(CONFIG_CHIP)/regs/
  8. INCLUDES += -I$(SDK_DIR)/
  9. INCLUDES += -I$(SDK_COMMON_DIR)/
  10. INCLUDES += -I$(SDK_COMMON_DIR)/Event
  11. INCLUDES += -I$(SDK_COMMON_DIR)/Assert
  12. INCLUDES += -I$(SDK_COMMON_DIR)/Util/Utilities/inc
  13. INCLUDES += -I$(SDK_VOS_DIR)/inc
  14. INCLUDES += -I$(SDK_VOS_DIR)/risc/inc
  15. INCLUDES += -I$(SDK_DRIVER_DIR)/Peripheral/Drv/Inc
  16. INCLUDES += -I$(SDK_DRIVER_DIR)/TX/MPRT/drv/inc
  17. INCLUDES += -I$(SDK_DRIVER_DIR)/Peripheral/Cal/$(CONFIG_CHIP)/Inc
  18. INCLUDES += -I$(SDK_DRIVER_DIR)/DisplayCtrl/cal/$(CONFIG_CHIP)/inc
  19. INCLUDES += -I$(SDK_DRIVER_DIR)/DisplayCtrl/cal/$(CONFIG_CHIP)/reg/inc
  20. INCLUDES += -I$(SDK_DRIVER_DIR)/DisplayCtrl/inc
  21. release:$(DISPCTRL_LIB)
  22. debug:$(DISPCTRL_LIB)
  23. DISPCTRL_DIR = $(SDK_DRIVER_DIR)/DisplayCtrl
  24. OBJ_DISPCTRL_C = $(wildcard $(DISPCTRL_DIR)/cal/$(CONFIG_CHIP)/src/*.c)
  25. OBJ_DISPCTRL_C += $(wildcard $(DISPCTRL_DIR)/drv/$(CONFIG_CHIP)/src/*.c)
  26. OBJ_DISPCTRL_C_NODIR = $(notdir $(OBJ_DISPCTRL_C))
  27. OBJ_DISPCTRL_C_O = $(OBJ_DISPCTRL_C_NODIR:%.c=%.o)
  28. DISPCTRL_TARGET_O += $(OBJ_DISPCTRL_C_O)
  29. DISPCTRL_NO_DIR_O = $(DISPCTRL_TARGET_O)
  30. DISPCTRL_WITH_DIR_O= $(addprefix $(BUILD_OUT_OBJ_DIR)/,$(DISPCTRL_NO_DIR_O))
  31. $(DISPCTRL_LIB):$(DISPCTRL_NO_DIR_O)
  32. $(HEADER)$(AR) qc $@ $(DISPCTRL_WITH_DIR_O)
  33. $(HEADER)$(RANLIB) $@