Makefile.mk 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. DATABASE_TARGET_O=
  2. include $(BUILD_DIR)/compile/$(CONFIG_CHIP)/common.inc
  3. VPATH = $(USER_DATABASE_DIR)/src
  4. INCLUDES = -I$(SDK_DIR)
  5. INCLUDES += -I$(SDK_COMMON_DIR)
  6. INCLUDES += -I$(SDK_COMMON_DIR)/Event
  7. INCLUDES += -I$(SDK_COMMON_DIR)/Assert
  8. INCLUDES += -I$(SDK_COMMON_DIR)/OSD/inc
  9. INCLUDES += -I$(SDK_COMMON_DIR)/Util/Utilities/inc
  10. INCLUDES += -I$(SDK_COMMON_DIR)/Util/HvQueue/inc
  11. INCLUDES += -I$(SDK_COMMON_DIR)/Assert
  12. INCLUDES += -I$(SDK_COMMON_DIR)/Util/HvQueue/inc
  13. INCLUDES += -I$(SDK_COMMON_DIR)/Timer/inc
  14. INCLUDES += -I$(SDK_DIR)/Driver/Arch/$(CONFIG_CHIP)
  15. INCLUDES += -I$(SDK_DIR)/Driver/Arch/$(CONFIG_CHIP)/regs
  16. INCLUDES += -I$(SDK_VOS_DIR)/inc
  17. INCLUDES += -I$(SDK_VOS_DIR)/risc/inc
  18. INCLUDES += -I$(USER_DATABASE_DIR)/inc
  19. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/ChannelManager/Audio/inc
  20. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/OSD/inc
  21. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/InputPortManager/inc
  22. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/InputPortManager/Ddcci/inc
  23. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/InputPortManager/HDCP/inc
  24. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/InputPortManager/HDMI/inc
  25. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/InputPortManager/DisplayPort/inc
  26. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/ChannelManager/Video/inc
  27. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/ChannelManager/inc
  28. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/RunTime/SystemTask/inc
  29. INCLUDES += -I$(USER_OSD_DIR)/Common/inc
  30. INCLUDES += -I$(USER_OSD_DIR)/Behaviour/inc
  31. INCLUDES += -I$(USER_OSD_DIR)/Resource/Composer/inc
  32. INCLUDES += -I$(USER_OSD_DIR)/Resource/Matrix/include
  33. INCLUDES += -I$(SDK_DRIVER_DIR)/Chip/$(CONFIG_CHIP)
  34. INCLUDES += -I$(SDK_DRIVER_DIR)/Peripheral/Drv/Inc
  35. INCLUDES += -I$(SDK_DRIVER_DIR)/Peripheral/Cal/$(CONFIG_CHIP)/Inc
  36. INCLUDES += -I$(SDK_DRIVER_DIR)/HDCP/drv/inc
  37. INCLUDES += -I$(SDK_DRIVER_DIR)/HDCP/inc
  38. INCLUDES += -I$(SDK_DRIVER_DIR)/HDCP/Engine/Common/inc
  39. INCLUDES += -I$(SDK_DRIVER_DIR)/HDMI/drv/inc
  40. INCLUDES += -I$(SDK_DRIVER_DIR)/HDMI/cal/common
  41. INCLUDES += -I$(SDK_DRIVER_DIR)/HDMI/cal/$(CONFIG_CHIP)/inc
  42. INCLUDES += -I$(SDK_DRIVER_DIR)/DisplayPort/drv/src
  43. INCLUDES += -I$(SDK_DRIVER_DIR)/DisplayPort/drv/inc
  44. INCLUDES += -I$(SDK_DRIVER_DIR)/DisplayPort/cal/$(CONFIG_CHIP)/inc
  45. INCLUDES += -I$(SDK_DRIVER_DIR)/Mailbox/drv/inc
  46. INCLUDES += -I$(USER_DIR)/$(CONFIG_VENDOR)/$(CONFIG_PROJECT)
  47. INCLUDES += -I$(USER_DIR)/$(CONFIG_VENDOR)/$(CONFIG_PROJECT)/Panel/inc
  48. INCLUDES += -I$(USER_DIR)/$(CONFIG_VENDOR)/$(CONFIG_PROJECT)/System
  49. INCLUDES += -I$(USER_DIR)/$(CONFIG_VENDOR)/$(CONFIG_PROJECT)/EDID/dp
  50. INCLUDES += -I$(USER_DIR)/$(CONFIG_VENDOR)/$(CONFIG_PROJECT)/EDID/hdmi
  51. DATABASE_LIB=$(BUILD_OUT_IMG_DIR)/libdatabase.a
  52. release:$(DATABASE_LIB)
  53. debug:$(DATABASE_LIB)
  54. OBJ_DATABASE_C = $(wildcard $(USER_DATABASE_DIR)/src/*.c)
  55. OBJ_DATABASE_C_NODIR = $(notdir $(OBJ_DATABASE_C))
  56. OBJ_DATABASE_C_O = $(OBJ_DATABASE_C_NODIR:%.c=%.o)
  57. DATABASE_TARGET_O += $(OBJ_DATABASE_C_O)
  58. DATABASE_NO_DIR_O = $(DATABASE_TARGET_O)
  59. DATABASE_WITH_DIR_O= $(addprefix $(BUILD_OUT_OBJ_DIR)/,$(DATABASE_NO_DIR_O))
  60. $(DATABASE_LIB):$(DATABASE_NO_DIR_O)
  61. $(HEADER)$(AR) qc $@ $(DATABASE_WITH_DIR_O)
  62. $(HEADER)$(RANLIB) $@