Makefile.mk 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. PQ_TARGET_O=
  2. PQ_LIB=$(BUILD_OUT_IMG_DIR)/libpq.a
  3. include $(BUILD_DIR)/compile/$(CONFIG_CHIP)/common.inc
  4. VPATH += $(SDK_DRIVER_DIR)/DPU/PQ/cal/$(CONFIG_CHIP)/src
  5. VPATH += $(SDK_DRIVER_DIR)/DPU/PQ/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)/DPU/PQ/inc
  16. INCLUDES += -I$(SDK_DRIVER_DIR)/Peripheral/Drv/Inc
  17. INCLUDES += -I$(SDK_DRIVER_DIR)/TX/MPRT/drv/inc
  18. INCLUDES += -I$(SDK_DRIVER_DIR)/Peripheral/Cal/$(CONFIG_CHIP)/Inc
  19. INCLUDES += -I$(SDK_DRIVER_DIR)/DPU/Scaler/drv/$(CONFIG_CHIP)/inc
  20. INCLUDES += -I$(SDK_DRIVER_DIR)/DPU/Scaler/cal/$(CONFIG_CHIP)/inc
  21. INCLUDES += -I$(SDK_DRIVER_DIR)/DPU/PQ/cal/$(CONFIG_CHIP)/inc
  22. INCLUDES += -I$(SDK_DRIVER_DIR)/DPU/PQ/cal/$(CONFIG_CHIP)/reg/inc
  23. release:$(PQ_LIB)
  24. debug:$(PQ_LIB)
  25. PQ_DIR = $(SDK_DRIVER_DIR)/DPU/PQ
  26. VPATH += $(PQ_DIR)
  27. OBJ_PQ_C = $(wildcard $(PQ_DIR)/cal/$(CONFIG_CHIP)/src/*.c)
  28. OBJ_PQ_C += $(wildcard $(PQ_DIR)/drv/$(CONFIG_CHIP)/src/*.c)
  29. OBJ_PQ_C_NODIR = $(notdir $(OBJ_PQ_C))
  30. OBJ_PQ_C_O = $(OBJ_PQ_C_NODIR:%.c=%.o)
  31. PQ_TARGET_O += $(OBJ_PQ_C_O)
  32. PQ_NO_DIR_O = $(PQ_TARGET_O)
  33. PQ_WITH_DIR_O= $(addprefix $(BUILD_OUT_OBJ_DIR)/,$(PQ_NO_DIR_O))
  34. $(PQ_LIB):$(PQ_NO_DIR_O)
  35. $(HEADER)$(AR) qc $@ $(PQ_WITH_DIR_O)
  36. $(HEADER)$(RANLIB) $@