Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. include build.param
  10. all: info common platform tests examples
  11. info:
  12. @echo $(BUILD_LOG_START)
  13. @echo " ========== Build Info =========="
  14. @echo " Platform: "$(PLATFORM)
  15. @echo " ROOT_DIR: "$(ROOT_DIR)
  16. @echo $(BUILD_LOG_END)
  17. common:
  18. @echo $(BUILD_LOG_START)
  19. make -C src/common
  20. @echo $(BUILD_LOG_END)
  21. platform: common
  22. @echo $(BUILD_LOG_START)
  23. make -C src/platform
  24. @echo $(BUILD_LOG_END)
  25. libs: platform
  26. @echo $(BUILD_LOG_START)
  27. make -C src/lib_camera
  28. @echo $(BUILD_LOG_END)
  29. tests: platform libs
  30. @echo $(BUILD_LOG_START)
  31. make -C tests
  32. @echo $(BUILD_LOG_END)
  33. examples: platform libs
  34. @echo $(BUILD_LOG_START)
  35. make -C examples
  36. @echo $(BUILD_LOG_END)
  37. clean:
  38. rm -rf .obj
  39. make -C src/common/ clean
  40. make -C src/platform/ clean
  41. make -C src/lib_camera clean
  42. make -C tests/ clean
  43. make -C examples/ clean
  44. .PHONY: clean all info common platform tests examples