Makefile 1022 B

123456789101112131415161718192021222324252627282930313233
  1. ##
  2. # Copyright (C) 2021 Alibaba Group Holding Limited
  3. # Author: LuChongzhi <chongzhi.lcz@alibaba-inc.com>
  4. #
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License version 2 as
  7. # published by the Free Software Foundation.
  8. ##
  9. DIR_TO_ROOT=../..
  10. include $(DIR_TO_ROOT)/build.param
  11. CFLAGS += -I$(DIR_TO_ROOT)/src/platform/simulator/drivers/ion/
  12. LIBS += -lhal_common -lhal_platform
  13. OUTPUT_DIR := $(DIR_TO_ROOT)/output/examples/frame
  14. TARGET_1 := frame_demo1
  15. SRCS_1 = frame_demo1.c frame_demo_common.c
  16. TARGET_2 := frame_demo2
  17. SRCS_2 = frame_demo2.c frame_demo2_producer.c frame_demo2_consumer.c frame_demo_common.c
  18. all: $(TARGET_1) $(TARGET_2)
  19. @mkdir -p $(OUTPUT_DIR)/../resource
  20. cp -f $(DIR_TO_ROOT)/examples/resource/yuv420_1280x720_csky2016.yuv $(OUTPUT_DIR)/../resource
  21. clean:
  22. rm -rf .obj
  23. rm -f $(TARGET_1) $(OUTPUT_DIR)/$(TARGET_1)
  24. rm -f $(TARGET_2) $(OUTPUT_DIR)/$(TARGET_2)
  25. include $(DIR_TO_ROOT)/common_target.mk
  26. .PHONY: clean all