Makefile.mk 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. OSD_TARGET_O=
  2. include $(BUILD_DIR)/compile/$(CONFIG_CHIP)/common.inc
  3. include $(USER_OSD_DIR)/Behaviour/Makefile.mk
  4. include $(USER_OSD_DIR)/Common/Makefile.mk
  5. include $(USER_OSD_DIR)/Resource/Makefile.mk
  6. INCLUDES += -I$(SDK_DIR)
  7. INCLUDES += -I$(SDK_COMMON_DIR)
  8. INCLUDES += -I$(SDK_COMMON_DIR)/Event
  9. INCLUDES += -I$(SDK_COMMON_DIR)/Assert
  10. INCLUDES += -I$(SDK_COMMON_DIR)/OSD/inc
  11. INCLUDES += -I$(SDK_COMMON_DIR)/Util/HvQueue/inc
  12. INCLUDES += -I$(SDK_COMMON_DIR)/Timer/inc
  13. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/ChannelManager/inc
  14. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/RunTime/SystemTask/inc
  15. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/RunTime/UsbTask/inc
  16. INCLUDES += -I$(USER_DIR)/$(CONFIG_VENDOR)/$(CONFIG_PROJECT)/System/EventHub/inc
  17. INCLUDES += -I$(SDK_DRIVER_DIR)/UsbHost/fatfs
  18. INCLUDES += -I$(SDK_VOS_DIR)/freertos/FreeRTOS/Include
  19. INCLUDES += -I$(SDK_VOS_DIR)/freertos/FreeRTOS/Source/include
  20. INCLUDES += -I$(SDK_VOS_DIR)/freertos/FreeRTOS/Source/portable/GCC/RISC32
  21. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/OSD/inc
  22. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/AppInterface
  23. INCLUDES += -I$(SDK_MIDDLEWARE_DIR)/Factory/inc
  24. INCLUDES += -I$(SDK_VOS_DIR)/inc
  25. INCLUDES += -I$(SDK_VOS_DIR)/risc/inc
  26. INCLUDES += -I$(SDK_DRIVER_DIR)/OSD/drv/inc
  27. INCLUDES += -I$(SDK_DRIVER_DIR)/OSD/cal/$(CONFIG_CHIP)/inc
  28. INCLUDES += -I$(SDK_DRIVER_DIR)/Peripheral/Drv/Inc
  29. INCLUDES += -I$(SDK_BOOT_DIR)/../Driver/Arch/$(CONFIG_CHIP)
  30. INCLUDES += -I$(ROOT_DIR)/user/$(CONFIG_VENDOR)/$(CONFIG_PROJECT)
  31. INCLUDES += -I$(USER_DATABASE_DIR)/inc
  32. INCLUDES += -I$(USER_OSD_DIR)/Behaviour/inc
  33. INCLUDES += -I$(USER_OSD_DIR)/Common/inc
  34. INCLUDES += -I$(USER_OSD_DIR)/Resource/Composer/inc
  35. INCLUDES += -I$(USER_OSD_DIR)/Resource/Matrix/include
  36. INCLUDES += -I$(ROOT_DIR)/user/$(CONFIG_VENDOR)/$(CONFIG_PROJECT)/Panel/inc
  37. INCLUDES += -I$(ROOT_DIR)/user/$(CONFIG_VENDOR)/$(CONFIG_PROJECT)/System
  38. INCLUDES += -I$(USER_KEYPAD_DIR)/Inc
  39. INCLUDES += -I$(USER_PQ_DIR)/inc
  40. OSD_LIB=$(BUILD_OUT_IMG_DIR)/libosd.a
  41. release:$(OSD_LIB)
  42. debug:$(OSD_LIB)
  43. VPATH += $(USER_OSD_DIR)
  44. OBJ_OSD_C = $(wildcard $(USER_OSD_DIR)/*.c)
  45. OBJ_OSD_C_NODIR = $(notdir $(OBJ_OSD_C))
  46. OBJ_OSD_C_O = $(OBJ_OSD_C_NODIR:%.c=%.o)
  47. OSD_TARGET_O += $(OBJ_OSD_C_O)
  48. OSD_NO_DIR_O = $(OSD_TARGET_O)
  49. OSD_WITH_DIR_O= $(addprefix $(BUILD_OUT_OBJ_DIR)/,$(OSD_NO_DIR_O))
  50. $(OSD_LIB):$(OSD_NO_DIR_O)
  51. $(HEADER)$(AR) qc $@ $(OSD_WITH_DIR_O)
  52. $(HEADER)$(RANLIB) $@