Makefile.mk 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. PLATFORM_TARGET_O=
  2. include $(BUILD_DIR)/compile/$(CONFIG_CHIP)/common.inc
  3. INCLUDES += -I$(SDK_DIR)
  4. INCLUDES += -I$(SDK_COMMON_DIR)
  5. INCLUDES += -I$(SDK_COMMON_DIR)/Event
  6. INCLUDES += -I$(SDK_COMMON_DIR)/Assert
  7. INCLUDES += -I$(SDK_COMMON_DIR)/PLATFORM/inc
  8. INCLUDES += -I$(SDK_COMMON_DIR)/Util/HvQueue/inc
  9. INCLUDES += -I$(SDK_COMMON_DIR)/Timer/inc
  10. INCLUDES += -I$(SDK_COMMON_DIR)/MemParser
  11. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/ChannelManager/inc
  12. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/ChannelManager/Audio/inc
  13. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/ChannelManager/Video/inc
  14. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/PanelManager/inc
  15. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/RunTime/SystemTask/inc
  16. INCLUDES += -I$(USER_DIR)/$(CONFIG_VENDOR)/$(CONFIG_PROJECT)/System/EventHub/inc
  17. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/PLATFORM/inc
  18. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/AppInterface
  19. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/Factory/inc
  20. INCLUDES += -I$(SDK_VOS_DIR)/inc
  21. INCLUDES += -I$(SDK_VOS_DIR)/risc/inc
  22. INCLUDES += -I$(SDK_DRIVER_DIR)/Peripheral/Drv/Inc
  23. INCLUDES += -I$(SDK_DRIVER_DIR)/Peripheral/Cal/$(CONFIG_CHIP)/Inc
  24. INCLUDES += -I$(SDK_BOOT_DIR)/../Driver/Arch/$(CONFIG_CHIP)
  25. INCLUDES += -I$(ROOT_DIR)/user/$(CONFIG_VENDOR)/$(CONFIG_PROJECT)
  26. INCLUDES += -I$(USER_DATABASE_DIR)/inc
  27. INCLUDES += -I$(ROOT_DIR)/user/$(CONFIG_VENDOR)/$(CONFIG_PROJECT)/Panel
  28. INCLUDES += -I$(ROOT_DIR)/user/$(CONFIG_VENDOR)/$(CONFIG_PROJECT)/System
  29. INCLUDES += -I$(ROOT_DIR)/user/$(CONFIG_VENDOR)/$(CONFIG_PROJECT)/DataBase/inc
  30. INCLUDES += -I$(USER_PLATFORM_DIR)/Inc
  31. INCLUDES += -I$(USER_KEYPAD_DIR)/Inc
  32. INCLUDES += -I$(USER_OSD_DIR)/Common/inc
  33. INCLUDES += -I$(USER_OSD_DIR)/Behaviour/inc
  34. INCLUDES += -I$(SDK_DRIVER_DIR)/Mailbox/drv/inc
  35. INCLUDES += -I$(SDK_DRIVER_DIR)/TX/KTX/drv/inc
  36. INCLUDES += -I$(SDK_DRIVER_DIR)/TX/KTX/cal/common
  37. INCLUDES += -I$(USER_DIR)/$(CONFIG_VENDOR)/$(CONFIG_PROJECT)/PQ/inc
  38. PLATFORM_LIB=$(BUILD_OUT_IMG_DIR)/libplatform.a
  39. release:$(PLATFORM_LIB)
  40. debug:$(PLATFORM_LIB)
  41. VPATH += $(USER_PLATFORM_DIR)/Src
  42. OBJ_PLATFORM_C = $(wildcard $(USER_PLATFORM_DIR)/Src/*.c)
  43. OBJ_PLATFORM_C_NODIR = $(notdir $(OBJ_PLATFORM_C))
  44. OBJ_PLATFORM_C_O = $(OBJ_PLATFORM_C_NODIR:%.c=%.o)
  45. PLATFORM_TARGET_O += $(OBJ_PLATFORM_C_O)
  46. PLATFORM_NO_DIR_O = $(PLATFORM_TARGET_O)
  47. PLATFORM_WITH_DIR_O= $(addprefix $(BUILD_OUT_OBJ_DIR)/,$(PLATFORM_NO_DIR_O))
  48. $(PLATFORM_LIB):$(PLATFORM_NO_DIR_O)
  49. $(HEADER)$(AR) qc $@ $(PLATFORM_WITH_DIR_O)
  50. $(HEADER)$(RANLIB) $@