Makefile 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. ALL_TARGETS := common camera frame
  12. ifeq ($(PLATFORM),simulator)
  13. ALL_TARGETS += vdec venc
  14. endif
  15. all: $(ALL_TARGETS)
  16. common:
  17. @echo $(BUILD_LOG_START)
  18. make -C common/
  19. @echo $(BUILD_LOG_END)
  20. camera:
  21. @echo $(BUILD_LOG_START)
  22. make -C camera/
  23. @echo $(BUILD_LOG_END)
  24. frame:
  25. @echo $(BUILD_LOG_START)
  26. make -C frame/
  27. @echo $(BUILD_LOG_END)
  28. vdec:
  29. @echo $(BUILD_LOG_START)
  30. make -C vdec/
  31. @echo $(BUILD_LOG_END)
  32. venc:
  33. @echo $(BUILD_LOG_START)
  34. make -C venc/
  35. @echo $(BUILD_LOG_END)
  36. clean:
  37. make -C common/ clean
  38. make -C camera/ clean
  39. make -C frame/ clean
  40. make -C vdec/ clean
  41. make -C venc/ clean
  42. rm -rf $(DIR_TO_ROOT)/output/examples/resource
  43. .PHONY: clean all common camera frame vdec venc